fixed docker db init
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user