-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
32 lines (25 loc) · 744 Bytes
/
Dockerfile
File metadata and controls
32 lines (25 loc) · 744 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
FROM debian:latest
RUN apt update
RUN apt install curl build-essential git python3 python3-pip wget -y
SHELL ["/bin/bash", "--login", "-c"]
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
WORKDIR /app/modmailbot
ARG GIT_REPO=https://github.com/Dragory/modmailbot.git
RUN git clone $GIT_REPO .
ARG GIT_BRANCH=master
RUN git switch $GIT_BRANCH
RUN nvm install
WORKDIR /app/modmailbot
RUN npm i
ARG MM_TOKEN
ARG MM_PREFIX
ARG MM_MAIN_SERVER_ID
ARG MM_INBOX_SERVER_ID
ARG MM_LOG_CHANNEL_ID
ARG MIGRATE_URL
ARG DB_FILE=/app/modmailbot/db/data.sqlite
COPY migrate migrate
WORKDIR /app/modmailbot/migrate
RUN npm i
WORKDIR /app/modmailbot
ENTRYPOINT ["/bin/bash", "--login", "-c", "cd migrate && npm start"]