Spaces:
Sleeping
Sleeping
Commit ·
c8de2a3
1
Parent(s): b11a813
updated docker
Browse files- Dockerfile +10 -7
Dockerfile
CHANGED
|
@@ -2,9 +2,12 @@ FROM python:3.9-slim
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
|
|
|
|
|
|
|
|
|
| 6 |
RUN apt-get update && \
|
| 7 |
-
apt-get install -y ffmpeg && \
|
| 8 |
rm -rf /var/lib/apt/lists/*
|
| 9 |
|
| 10 |
# Copy application files
|
|
@@ -13,12 +16,12 @@ COPY . .
|
|
| 13 |
# Install Python dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
-
#
|
| 17 |
-
ENV AZURE_SPEECH_KEY=
|
| 18 |
-
ENV AZURE_SPEECH_REGION=
|
| 19 |
-
ENV AZURE_OPENAI_KEY=
|
| 20 |
|
| 21 |
-
# Expose port
|
| 22 |
EXPOSE 8501
|
| 23 |
|
| 24 |
# Run the application
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Set UTF-8 locale and install system dependencies
|
| 6 |
+
ENV LANG=C.UTF-8
|
| 7 |
+
ENV LC_ALL=C.UTF-8
|
| 8 |
+
|
| 9 |
RUN apt-get update && \
|
| 10 |
+
apt-get install -y ffmpeg libgl1 libglib2.0-0 git && \
|
| 11 |
rm -rf /var/lib/apt/lists/*
|
| 12 |
|
| 13 |
# Copy application files
|
|
|
|
| 16 |
# Install Python dependencies
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
|
| 19 |
+
# Environment variables (set these in Hugging Face Secrets UI)
|
| 20 |
+
ENV AZURE_SPEECH_KEY=""
|
| 21 |
+
ENV AZURE_SPEECH_REGION=""
|
| 22 |
+
ENV AZURE_OPENAI_KEY=""
|
| 23 |
|
| 24 |
+
# Expose Streamlit port
|
| 25 |
EXPOSE 8501
|
| 26 |
|
| 27 |
# Run the application
|