port update
Browse files- Dockerfile +2 -2
- app.py +1 -1
Dockerfile
CHANGED
|
@@ -22,7 +22,7 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 22 |
COPY app.py /app/
|
| 23 |
|
| 24 |
# 6. Expose the port
|
| 25 |
-
EXPOSE
|
| 26 |
|
| 27 |
# 7. Command to run your app via Gunicorn
|
| 28 |
-
CMD exec gunicorn --bind 0.0.0.0:
|
|
|
|
| 22 |
COPY app.py /app/
|
| 23 |
|
| 24 |
# 6. Expose the port
|
| 25 |
+
EXPOSE 7860
|
| 26 |
|
| 27 |
# 7. Command to run your app via Gunicorn
|
| 28 |
+
CMD exec gunicorn --bind 0.0.0.0:7860 --workers 2 app:ffmpeg_app
|
app.py
CHANGED
|
@@ -96,4 +96,4 @@ def convert_media():
|
|
| 96 |
if __name__ == '__main__':
|
| 97 |
# For local development/testing of the FFmpeg service
|
| 98 |
# NOTE: When deployed via Docker/Gunicorn on Hugging Face, this block is ignored.
|
| 99 |
-
ffmpeg_app.run(host='0.0.0.0', port=
|
|
|
|
| 96 |
if __name__ == '__main__':
|
| 97 |
# For local development/testing of the FFmpeg service
|
| 98 |
# NOTE: When deployed via Docker/Gunicorn on Hugging Face, this block is ignored.
|
| 99 |
+
ffmpeg_app.run(host='0.0.0.0', port=7860, debug=True)
|