moving database files

This commit is contained in:
2025-12-10 23:14:10 -05:00
parent 93c88ade01
commit 8f1fa1cf6a
2 changed files with 3 additions and 0 deletions

View File

@@ -12,5 +12,7 @@ EXPOSE 5000
ENV PYTHONUNBUFFERED=1
ENV PYTHONIOENCODING=utf-8
VOLUME ["/app/data"]
# Use Gunicorn instead of python main.py
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "-k", "gevent", "--workers", "1", "--timeout", "120", "--access-logfile", "-", "--error-logfile", "-", "--log-level", "info", "main:app"]

1
Jenkinsfile vendored
View File

@@ -61,6 +61,7 @@ pipeline {
docker run -d \\
--name ${FLASK_CONTAINER_NAME} \\
--network ${NETWORK_NAME} \\
-v ${FLASK_CONTAINER_NAME}_data:/app/data \\
${BACKEND_IMAGE}
"""