Spaces:
Runtime error
Runtime error
TKU410410103
commited on
Commit
•
7a8fb0f
1
Parent(s):
e1de57a
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -6,7 +6,7 @@ WORKDIR /app
|
|
6 |
|
7 |
# Install system dependencies
|
8 |
RUN apt-get update && \
|
9 |
-
apt-get install -y ffmpeg && \
|
10 |
rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
# Copy the requirements file and install Python dependencies
|
@@ -24,13 +24,14 @@ RUN pip install /app/ReazonSpeech/pkg/nemo-asr
|
|
24 |
RUN mkdir -p /app/cache/huggingface /app/cache/modelscope /app/cache/matplotlib /app/cache/fontconfig /app/cache/lhotse && \
|
25 |
chmod -R 777 /app/cache
|
26 |
|
27 |
-
# Set environment variables for cache directories
|
28 |
ENV TRANSFORMERS_CACHE=/app/cache/huggingface
|
29 |
ENV HF_HOME=/app/cache/huggingface
|
30 |
ENV MODELSCOPE_CACHE=/app/cache/modelscope
|
31 |
ENV MPLCONFIGDIR=/app/cache/matplotlib
|
32 |
ENV FONTCONFIG_PATH=/app/cache/fontconfig
|
33 |
ENV LHOTSE_CACHE=/app/cache/lhotse
|
|
|
34 |
|
35 |
# Copy the rest of the application source code
|
36 |
COPY . /app
|
@@ -44,4 +45,4 @@ ENV VARIABLE_NAME="app"
|
|
44 |
ENV PORT=7860
|
45 |
|
46 |
# Run the app using Uvicorn
|
47 |
-
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "
|
|
|
6 |
|
7 |
# Install system dependencies
|
8 |
RUN apt-get update && \
|
9 |
+
apt-get install -y ffmpeg libsndfile1 && \
|
10 |
rm -rf /var/lib/apt/lists/*
|
11 |
|
12 |
# Copy the requirements file and install Python dependencies
|
|
|
24 |
RUN mkdir -p /app/cache/huggingface /app/cache/modelscope /app/cache/matplotlib /app/cache/fontconfig /app/cache/lhotse && \
|
25 |
chmod -R 777 /app/cache
|
26 |
|
27 |
+
# Set environment variables for cache directories and application configuration
|
28 |
ENV TRANSFORMERS_CACHE=/app/cache/huggingface
|
29 |
ENV HF_HOME=/app/cache/huggingface
|
30 |
ENV MODELSCOPE_CACHE=/app/cache/modelscope
|
31 |
ENV MPLCONFIGDIR=/app/cache/matplotlib
|
32 |
ENV FONTCONFIG_PATH=/app/cache/fontconfig
|
33 |
ENV LHOTSE_CACHE=/app/cache/lhotse
|
34 |
+
ENV PYTHONUNBUFFERED=1
|
35 |
|
36 |
# Copy the rest of the application source code
|
37 |
COPY . /app
|
|
|
45 |
ENV PORT=7860
|
46 |
|
47 |
# Run the app using Uvicorn
|
48 |
+
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
|