switch webserver to gunicorn
This commit is contained in:
parent
653d04e76a
commit
277bd5a283
5
setup.sh
5
setup.sh
|
@ -108,6 +108,7 @@ matrix-client
|
|||
reportlab
|
||||
requests
|
||||
pillow
|
||||
gunicorn
|
||||
EOL
|
||||
|
||||
# 3. .env-Datei im übergeordneten Verzeichnis erstellen
|
||||
|
@ -878,9 +879,7 @@ RUN groupadd -g \$GID appuser && \
|
|||
chown -R appuser:appuser /app
|
||||
|
||||
USER appuser
|
||||
|
||||
EXPOSE 5000
|
||||
CMD ["python", "app.py"]
|
||||
CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]
|
||||
DOCKER_END
|
||||
|
||||
# 6. docker-compose.yml
|
||||
|
|
Loading…
Reference in New Issue