Compare commits

..

3 Commits

2 changed files with 26 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM python:3.11-slim-bullseye
WORKDIR /app
RUN rm /etc/localtime
RUN ln -s /usr/share/zoneinfo/Europe/Kyiv /etc/localtime
COPY ./requirements.txt /app/requirements.txt
RUN python -m pip install -r requirements.txt
COPY ./app/ /app/app/
CMD flask run -h 0.0.0.0 -p $PORT

12
docker-compose.yaml Normal file
View File

@ -0,0 +1,12 @@
version: '3'
services:
app:
restart: unless-stopped
build:
context: .
dockerfile: Dockerfile
environment:
PORT: "12402"
ports:
- "12402:12402"