Add Dockerfile and docker-compose.yaml
This commit is contained in:
parent
db22341b18
commit
86e508bc9d
3 changed files with 20 additions and 0 deletions
5
.dockerignore
Normal file
5
.dockerignore
Normal file
|
@ -0,0 +1,5 @@
|
|||
.idea/
|
||||
venv/
|
||||
__pycache__/
|
||||
Dockerfile
|
||||
docker-compose.yaml
|
7
Dockerfile
Normal file
7
Dockerfile
Normal file
|
@ -0,0 +1,7 @@
|
|||
FROM python:3.10
|
||||
ENV PYTHONUNBUFFERED=1
|
||||
WORKDIR /app
|
||||
COPY requirements.txt .
|
||||
RUN pip install -r requirements.txt
|
||||
COPY . .
|
||||
CMD ["gunicorn", "-b", "0.0.0.0", "app:app"]
|
8
docker-compose.yaml
Normal file
8
docker-compose.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
version: "3"
|
||||
services:
|
||||
app:
|
||||
image: harbor.jfreudenberger.de:8443/mensa-parser/app:latest
|
||||
build:
|
||||
context: .
|
||||
ports:
|
||||
- "127.0.0.1:8000:8000"
|
Loading…
Reference in a new issue