-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
31 lines (23 loc) · 860 Bytes
/
Dockerfile
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
FROM node:17-alpine
LABEL \
org.opencontainers.image.title="Discord Actions Bot" \
org.opencontainers.image.description="🤖 A Discord Bot that helps with Action Items." \
org.opencontainers.image.url="https://github.com/wei/discord-actions-bot" \
org.opencontainers.image.documentation="https://github.com/wei/discord-actions-bot#readme" \
org.opencontainers.image.source="https://github.com/wei/discord-actions-bot" \
org.opencontainers.image.licenses="MIT" \
org.opencontainers.image.authors="Wei He <[email protected]> and Damir Temir <[email protected]>" \
maintainer="Wei He <[email protected]>"
ENV \
CLIENT_ID= \
DISCORD_TOKEN= \
# Optional #
GUILD_ID= \
TENOR_API_KEY= \
_=
WORKDIR /app
COPY package*.json /app
RUN npm ci --only=production && npm cache clean --force
COPY . /app
VOLUME [ "/app/db" ]
CMD npm start