rairo commited on
Commit
b79d0eb
·
verified ·
1 Parent(s): 1129da5

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -1,12 +1,12 @@
1
- # Use Python 3.10 as base
2
  FROM python:3.10-slim
3
 
4
  # 1. Install System Dependencies
5
- # libgl1-mesa-glx: Required for OpenCV
6
- # libasound2-dev & libssl-dev: Required for Azure Speech SDK
7
- # ffmpeg: Helper for audio processing
8
  RUN apt-get update && apt-get install -y \
9
- libgl1-mesa-glx \
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 using Gunicorn + Eventlet
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"]