fixed docker db init

This commit is contained in:
hex
2025-01-18 19:02:06 -08:00
parent 66f8d87a44
commit d5ffb88a8d
2 changed files with 11 additions and 1 deletions

View File

@@ -25,6 +25,9 @@ RUN pip install --no-cache-dir -r requirements.txt
# Copy the rest of the application
COPY . .
# Make entrypoint script executable
RUN chmod +x /app/docker-entrypoint.sh
# Create volume for persistent database storage
VOLUME ["/app/instance"]
@@ -37,4 +40,4 @@ USER myuser
EXPOSE 5000
# Command to run the application
CMD ["gunicorn", "-c", "gunicorn.conf.py", "app:app"]
ENTRYPOINT ["/app/docker-entrypoint.sh"]