Spaces:
Runtime error
Runtime error
Dmitry Beresnev
commited on
Commit
·
beacc62
1
Parent(s):
5f9b4fd
fix dockerfile file
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -50,6 +50,7 @@ EXPOSE 7860
|
|
| 50 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
| 51 |
CMD curl --fail http://localhost:7860/ || exit 1
|
| 52 |
|
| 53 |
-
# Run the application
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
| 50 |
HEALTHCHECK --interval=30s --timeout=10s --start-period=60s --retries=3 \
|
| 51 |
CMD curl --fail http://localhost:7860/ || exit 1
|
| 52 |
|
| 53 |
+
# Run the application when the container starts HF
|
| 54 |
+
CMD ["python", "-m", "uvicorn", "src.telegram_bot:app", "--host", "0.0.0.0", "--port", "7860"]
|
| 55 |
+
# Uncomment the line below to run the application locally
|
| 56 |
+
#CMD ["python", "-m", "telegram_bot"]
|