This commit is contained in:
filimonov
2024-02-20 16:43:56 +07:00
parent f79efa2951
commit a086f94798
28 changed files with 1469 additions and 144 deletions

16
web-dev/dockerfile Normal file
View File

@@ -0,0 +1,16 @@
FROM alpine
RUN apk update && apk upgrade && apk add python3 && apk add -U tzdata
WORKDIR /app
COPY requirements.txt requirements.txt
RUN python3 -m venv .venv
RUN /app/.venv/bin/pip3 install -r /app/requirements.txt
COPY app.py /app
COPY static /app/static
COPY templates /app/templates
EXPOSE 5001
CMD [".venv/bin/python3", "app.py"]