Compare commits
3 Commits
4936114942
...
f50bbca48e
Author | SHA1 | Date |
---|---|---|
ІО-23 Шмуляр Олег | f50bbca48e | |
ІО-23 Шмуляр Олег | 7a84db633c | |
ІО-23 Шмуляр Олег | 64d6638cc3 |
|
@ -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
|
|
@ -0,0 +1,12 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
app:
|
||||
restart: unless-stopped
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
PORT: "12402"
|
||||
ports:
|
||||
- "12402:12402"
|
Loading…
Reference in New Issue