-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (26 loc) · 748 Bytes
/
Dockerfile
File metadata and controls
33 lines (26 loc) · 748 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
33
FROM python:latest
# set work directory
WORKDIR /usr/src/app/
RUN mkdir -p /usr/src/app/service/
RUN mkdir -p /usr/src/app/handlers/
RUN mkdir -p /usr/src/app/database/
RUN mkdir -p /usr/src/app/others/
RUN mkdir -p /usr/src/app/log/
# copy project
COPY ./*.py /usr/src/app/
COPY ./service/*.py /usr/src/app/service/
COPY ./handlers/*.py /usr/src/app/handlers/
COPY ./others/*.py /usr/src/app/others/
COPY ./settings_docker /usr/src/app/settings
# install dependencies
RUN pip install aiogram
RUN pip install emoji
RUN pip install CurrencyConverter
RUN pip install requests
RUN pip install environs
RUN pip install redis
RUN pip install apscheduler
RUN pip install aiosqlite
RUN pip install apscheduler-di
# run app
CMD ["python", "main.py"]