generated from 8go/nio-template
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Dockerfile
29 lines (23 loc) · 802 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
FROM python:3.7-slim
RUN apt update && apt upgrade -y && \
apt install -y \
wget \
libmagic1 \
build-essential
WORKDIR /bot
COPY *.py /bot/
COPY *.yaml /bot/
COPY *.txt /bot/
COPY eno /bot/eno/
# download libolm3 from Ubuntu focal distribution
# https://packages.ubuntu.com/focal/libolm3
# https://packages.ubuntu.com/focal/libolm-dev
RUN wget http://mirrors.kernel.org/ubuntu/pool/universe/o/olm/libolm-dev_3.1.3+dfsg-2build2_amd64.deb
RUN wget http://mirrors.kernel.org/ubuntu/pool/universe/o/olm/libolm3_3.1.3+dfsg-2build2_amd64.deb
RUN dpkg -i ./*.deb
RUN pip install -r requirements.txt
# clean up apt cache and remove gcc
RUN apt purge -y build-essential && \
apt autoremove -y && apt clean && \
rm -rf /var/lib/apt/lists/*
CMD [ "python", "./main.py" ]