scripts/itmo/election_status/Dockerfile

18 lines
362 B
Docker
Raw Permalink Normal View History

2024-08-29 16:16:17 +03:00
ARG PYTHON_VERSION=3.11-slim
FROM python:${PYTHON_VERSION} as python
2024-08-29 15:49:34 +03:00
2024-08-29 16:16:17 +03:00
FROM python as python-build-stage
ARG BUILD_ENVIRONMENT=local
RUN mkdir "/app"
2024-08-29 15:49:34 +03:00
WORKDIR /app
2024-08-29 16:16:17 +03:00
ARG BUILD_ENVIRONMENT=local
2024-08-29 15:49:34 +03:00
2024-08-29 16:16:17 +03:00
ADD requirements.txt requirements.txt
ADD main.py main.py
ADD subscribed_chats.json subscribed_chats.json
2024-08-29 15:49:34 +03:00
2024-08-29 16:16:17 +03:00
RUN pip install -r requirements.txt
2024-08-29 15:49:34 +03:00
CMD ["python", "main.py"]