Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +10 -2
Dockerfile
CHANGED
|
@@ -5,9 +5,17 @@ RUN apt-get update && apt-get install -y \
|
|
| 5 |
espeak-ng \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
COPY requirements.txt .
|
| 10 |
-
RUN pip install -r requirements.txt
|
|
|
|
| 11 |
|
| 12 |
# App
|
| 13 |
COPY app.py .
|
|
|
|
| 5 |
espeak-ng \
|
| 6 |
&& rm -rf /var/lib/apt/lists/*
|
| 7 |
|
| 8 |
+
# Set environment variable to avoid caching issues
|
| 9 |
+
ENV PYTHONPYCACHEPREFIX=/tmp/pycache
|
| 10 |
+
ENV LIBROSA_CACHE_DIR=/tmp/librosa_cache
|
| 11 |
+
|
| 12 |
+
# Set working directory
|
| 13 |
+
WORKDIR /app
|
| 14 |
+
|
| 15 |
+
# Copy and install Python dependencies
|
| 16 |
COPY requirements.txt .
|
| 17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
+
|
| 19 |
|
| 20 |
# App
|
| 21 |
COPY app.py .
|