lol
This commit is contained in:
@@ -24,5 +24,9 @@ EXPOSE 5000
|
||||
ENV FLASK_APP=app.py
|
||||
ENV FLASK_ENV=production
|
||||
|
||||
# Run the application with gunicorn
|
||||
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--chdir", "/app", "app:app"]
|
||||
# Create a startup script
|
||||
RUN echo '#!/bin/bash\npython init_db.py\ngunicorn --bind 0.0.0.0:5000 --chdir /app app:app' > /app/start.sh
|
||||
RUN chmod +x /app/start.sh
|
||||
|
||||
# Run the startup script
|
||||
CMD ["/app/start.sh"]
|
||||
Reference in New Issue
Block a user