Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -8
Dockerfile
CHANGED
|
@@ -1,23 +1,26 @@
|
|
| 1 |
-
#
|
| 2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
# 1. Install System Dependencies
|
| 5 |
-
#
|
| 6 |
-
# libssl-dev:
|
| 7 |
-
# libasound2: Required for Audio
|
| 8 |
# ffmpeg: Required for audio sanitization
|
| 9 |
# libgl1: Required for OpenCV
|
| 10 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 11 |
libgl1 \
|
| 12 |
-
libglib2.0-0 \
|
| 13 |
libasound2 \
|
| 14 |
-
libasound2-plugins \
|
| 15 |
libssl-dev \
|
| 16 |
ca-certificates \
|
| 17 |
ffmpeg \
|
| 18 |
&& rm -rf /var/lib/apt/lists/*
|
| 19 |
|
| 20 |
-
# 2.
|
| 21 |
RUN update-ca-certificates
|
| 22 |
|
| 23 |
# 3. Setup Work Directory
|
|
|
|
| 1 |
+
# ---------------------------------------------------------------
|
| 2 |
+
# CRITICAL CHANGE: Use the FULL Python image (not slim).
|
| 3 |
+
# The 'slim' image lacks the C-level SSL libraries required
|
| 4 |
+
# by the Azure Speech SDK to initialize its platform.
|
| 5 |
+
# ---------------------------------------------------------------
|
| 6 |
+
FROM python:3.10
|
| 7 |
|
| 8 |
# 1. Install System Dependencies
|
| 9 |
+
# build-essential: Ensures C++ libraries are present
|
| 10 |
+
# libssl-dev & ca-certificates: Fixes Azure Error 2176
|
| 11 |
+
# libasound2: Required for Azure Audio
|
| 12 |
# ffmpeg: Required for audio sanitization
|
| 13 |
# libgl1: Required for OpenCV
|
| 14 |
RUN apt-get update && apt-get install -y \
|
| 15 |
+
build-essential \
|
| 16 |
libgl1 \
|
|
|
|
| 17 |
libasound2 \
|
|
|
|
| 18 |
libssl-dev \
|
| 19 |
ca-certificates \
|
| 20 |
ffmpeg \
|
| 21 |
&& rm -rf /var/lib/apt/lists/*
|
| 22 |
|
| 23 |
+
# 2. Force update of security certificates
|
| 24 |
RUN update-ca-certificates
|
| 25 |
|
| 26 |
# 3. Setup Work Directory
|