Запуск из docker-compose

This commit is contained in:
2023-06-05 15:43:22 +03:00
parent 7bcfcc458c
commit fdd40e53e1
2 changed files with 22 additions and 0 deletions

14
Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM python:3.11
WORKDIR /opt/app
ENV PYTHONPATH '/opt/app'
COPY requirements.txt requirements.txt
RUN python -m pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
COPY /src .
RUN python main.py