-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
45 lines (35 loc) · 1004 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# FROM debian:unstable-slim
FROM debian:testing-slim
RUN echo 'deb-src http://deb.debian.org/debian unstable main' >> /etc/apt/sources.list && \
apt-get update && apt-get -y dist-upgrade && \
apt-get install -y --no-install-recommends \
dctrl-tools \
devscripts \
dpkg-dev \
git \
python3-apt \
python3-debian \
python3-pip \
python3-redis \
python3-venv \
python3-wheel \
curl \
&& rm -rf /var/lib/apt/lists/*
ENV PYTHONDONTWRITEBYTECODE=1
WORKDIR /app
RUN python3 -m venv --system-site-packages /app/venv && \
/app/venv/bin/pip install -U \
aiofiles \
cryptography \
matrix-nio \
PyJWT \
requests
ENV PATH="/app/venv/bin/:$PATH"
ENV PYTHONUNBUFFERED=1
COPY . /app/
RUN mv /app/docker-entrypoint.sh /
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD [ "python3", "-m", "dcbot" ]
# credentials.json required by bot.py for Matrix Login
# config.ini and *.pem are required by update.py for GitHub
# cache.pkl is not needed