PREDEP #1
This commit is contained in:
16
web-dev/dockerfile
Normal file
16
web-dev/dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user