-
Notifications
You must be signed in to change notification settings - Fork 1
/
dockerfile
31 lines (26 loc) · 935 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
# using python parent image
FROM python:3-slim
# defining workdir
WORKDIR /auto_chat
# copying the current directory contents into the container
COPY ./ /auto_chat
# installing any needed dependencies specified in requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# installing openssl 1.1 using the package manager
RUN apt-get update
RUN apt-get install -y wget
RUN wget http://nz2.archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2_amd64.deb
RUN dpkg -i libssl1.1_1.1.1f-1ubuntu2_amd64.deb
# running start script (ENTRYPOINT instead of CMD to be sure that our run.py would catch stop signal)
ENTRYPOINT [ \
"python", \
"run.py", \
"--telegram-config", \
"config/telegram.yaml", \
"--auto-chat-config", \
"config/autolove.yaml", \
"--yandex-cloud-config", \
"config/yandex_cloud.yaml", \
"--yandex-gpt-key", \
"keys/yandex_authorization_key.json" \
]