-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
40 lines (29 loc) · 772 Bytes
/
Dockerfile
File metadata and controls
40 lines (29 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
FROM node:16-alpine
# Token Of Your Discord Bot
# [Required]
ENV BOT_TOKEN="${BOT_TOKEN}"
# URI Of Your MongoDB
# [Required]
ENV DATABASE_URL="${DATABASE_URL}"
# Webhooks
ENV WEBHOOK_JOIN=
ENV WEBHOOK_EXIT=
# Audit webhooks
ENV WEBHOOK_AUDIT_CHANNEL=
ENV WEBHOOK_AUDIT_BAN=
ENV WEBHOOK_AUDIT_EVENT=
ENV WEBHOOK_AUDIT_MEMBER=
ENV WEBHOOK_AUDIT_MESSAGE=
ENV WEBHOOK_AUDIT_ROLE=
ENV WEBHOOK_AUDIT_THREAD=
RUN apk add --no-cache git
# Install python3
RUN apk add --no-cache python3
# Install libs for node-canvas build
RUN apk add --no-cache build-base g++ cairo-dev jpeg-dev pango-dev giflib-dev
RUN mkdir -p /home/codembot
WORKDIR /home/codembot
COPY package.json /home/codembot
RUN npm install --build-from-source
COPY . /home/codembot
CMD ["node", "."]