Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -1,12 +1,12 @@
|
|
| 1 |
-
# Use Python 3.10
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# 1. Install System Dependencies
|
| 5 |
-
# libgl1-mesa-glx
|
| 6 |
-
#
|
| 7 |
-
# ffmpeg
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
-
libgl1
|
| 10 |
libglib2.0-0 \
|
| 11 |
libasound2 \
|
| 12 |
libasound2-plugins \
|
|
@@ -33,5 +33,5 @@ ENV HOME=/home/user \
|
|
| 33 |
# 6. Expose the specific HF port
|
| 34 |
EXPOSE 7860
|
| 35 |
|
| 36 |
-
# 7. Start Command
|
| 37 |
CMD ["gunicorn", "--worker-class", "eventlet", "-w", "1", "--bind", "0.0.0.0:7860", "app:app"]
|
|
|
|
| 1 |
+
# Use Python 3.10 slim
|
| 2 |
FROM python:3.10-slim
|
| 3 |
|
| 4 |
# 1. Install System Dependencies
|
| 5 |
+
# FIX: Replaced 'libgl1-mesa-glx' with 'libgl1' for modern Debian
|
| 6 |
+
# libglib2.0-0 is required for OpenCV
|
| 7 |
+
# libasound2 & ffmpeg are required for Azure Speech & Audio processing
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
+
libgl1 \
|
| 10 |
libglib2.0-0 \
|
| 11 |
libasound2 \
|
| 12 |
libasound2-plugins \
|
|
|
|
| 33 |
# 6. Expose the specific HF port
|
| 34 |
EXPOSE 7860
|
| 35 |
|
| 36 |
+
# 7. Start Command
|
| 37 |
CMD ["gunicorn", "--worker-class", "eventlet", "-w", "1", "--bind", "0.0.0.0:7860", "app:app"]
|