-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (20 loc) · 788 Bytes
/
Dockerfile
File metadata and controls
27 lines (20 loc) · 788 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
FROM ubuntu:20.04
SHELL ["/bin/bash", "-c"]
RUN mkdir /modmail
WORKDIR /modmail
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y git python3 python3-venv python3-pip curl cmake
RUN git clone https://github.com/chamburr/twilight-dispatch
RUN cd twilight-dispatch
RUN curl https://sh.rustup.rs -sSf -o rustup.rs && chmod +x rustup.rs && ./rustup.rs -y
ENV PATH="/root/.cargo/bin:${PATH}"
RUN cd /modmail/twilight-dispatch && cargo build --release
RUN git clone https://github.com/CHamburr/modmail
COPY requirements.txt /modmail/modmail/requirements.txt
RUN cd modmail && pip3 install -r requirements.txt
RUN echo "d"
COPY .env /modmail/twilight-dispatch
COPY config.py /modmail/modmail
COPY runall.sh .
RUN chmod +x runall.sh
CMD ["bash", "runall.sh"]