From 8f1fa1cf6ad0b7abab931edd7b8e458be7fef56d Mon Sep 17 00:00:00 2001 From: Ryan Kegel Date: Wed, 10 Dec 2025 23:14:10 -0500 Subject: [PATCH] moving database files --- Dockerfile | 2 ++ Jenkinsfile | 1 + 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 8f03ba0..e17b1df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index ef29c38..9c4f2f0 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -61,6 +61,7 @@ pipeline { docker run -d \\ --name ${FLASK_CONTAINER_NAME} \\ --network ${NETWORK_NAME} \\ + -v ${FLASK_CONTAINER_NAME}_data:/app/data \\ ${BACKEND_IMAGE} """