added Dockerstuff for dev and prod using traefik
This commit is contained in:
parent
17c06d1eaa
commit
879366eb95
8 changed files with 221 additions and 0 deletions
18
app/Dockerfile
Normal file
18
app/Dockerfile
Normal 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 . .
|
Loading…
Add table
Add a link
Reference in a new issue