added Dockerstuff for dev and prod using traefik

This commit is contained in:
gw3000 2023-07-11 18:24:36 +02:00
parent 17c06d1eaa
commit 879366eb95
8 changed files with 221 additions and 0 deletions

18
app/Dockerfile Normal file
View file

@ -0,0 +1,18 @@
# app/Dockerfile
# pull the official docker image
FROM python:3.11.2-slim
# set work directory
WORKDIR /app
# set env variables
ENV PYTHONDONTWRITEBYTECODE 1
ENV PYTHONUNBUFFERED 1
# install dependencies
COPY requirements.txt .
RUN pip install -r requirements.txt
# copy project
COPY . .