Skip to content

Commit

Permalink
ci: Provide production deployment via gunicorn
Browse files Browse the repository at this point in the history
  • Loading branch information
AiyionPrime committed Jan 8, 2025
1 parent 02c499a commit 2c7b6db
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ RUN pip install --no-cache-dir -r requirements.txt
# Quellcode in den Container kopieren
COPY . .

# Flask Server starten
CMD ["flask", "run", "--host=0.0.0.0", "--port=8003"]
# Gunicorn Server starten
CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:8003", "app:app"]
3 changes: 0 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,5 @@ services:
- "8003:8003"
volumes:
- ./app/config.py:/app/app/config.py:ro # Die lokale config.py in den Container mounten
environment:
FLASK_ENV: development
FLASK_APP: app # Setzt das Flask App-Modul
restart: always

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
flask
gunicorn
gunicorn==23.0.0
Flask-WTF
lxml
email_validator
Expand Down

0 comments on commit 2c7b6db

Please sign in to comment.