Remove db init from Dockerfile.
This commit is contained in:
@@ -32,8 +32,7 @@ RUN chmod 777 /data
|
|||||||
# Expose the port the app runs on
|
# Expose the port the app runs on
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
# Run database migrations on startup
|
# Database will be created at runtime when /data volume is mounted
|
||||||
RUN python -c "from app import app, db; app.app_context().push(); db.create_all()"
|
|
||||||
|
|
||||||
# Command to run the application
|
# Command to run the application
|
||||||
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]
|
CMD ["flask", "run", "--host=0.0.0.0", "--port=5000"]
|
||||||
Reference in New Issue
Block a user