-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (26 loc) · 801 Bytes
/
Dockerfile
File metadata and controls
34 lines (26 loc) · 801 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
FROM node:20 AS build
ENV VERSION=v3.8.0
WORKDIR /usr/src/app
RUN git clone https://github.com/Dragory/modmailbot && \
cd modmailbot && \
git checkout ${VERSION} && \
npm install -g minify-all node-prune && \
npm ci --only=production && \
npm prune --production && \
node-prune && \
minify-all
FROM node:20-alpine
ENV MM_MAIN_SERVER_ID= \
MM_INBOX_SERVER_ID= \
MM_LOG_CHANNEL_ID= \
MM_ALLOW_USER_CLOSE=1 \
MM_TOKEN= \
MM_LOG_STORAGE=local \
MM_DB_TYPE=sqlite \
MM_CLOSE_MESSAGE="This thread has been closed." \
MM_CATEGORY_AUTOMATION__NEW_THREAD= \
MM_STATUS="Modmail, the way to report things" \
MM_URL=
COPY --from=build /usr/src/app/modmailbot /usr/src/modmailbot
WORKDIR /usr/src/modmailbot
ENTRYPOINT ["npm", "start"]