Spaces:
Sleeping
Sleeping
Merge pull request #4 from MyNameisKaveh/feat/sudoku-web-app-farsi
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -26,4 +26,5 @@ ENV FLASK_SECRET_KEY="a_very_secure_default_secret_key_that_you_SHOULD_override"
|
|
| 26 |
|
| 27 |
# 8. Run Gunicorn to serve the Flask app
|
| 28 |
# The module is web_app.app and the Flask instance is named 'app'
|
| 29 |
-
|
|
|
|
|
|
| 26 |
|
| 27 |
# 8. Run Gunicorn to serve the Flask app
|
| 28 |
# The module is web_app.app and the Flask instance is named 'app'
|
| 29 |
+
# Use sh -c to ensure $PORT is expanded by the shell
|
| 30 |
+
CMD sh -c 'gunicorn --workers 2 --bind 0.0.0.0:$PORT web_app.app:app'
|