Update Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
@@ -8,6 +8,14 @@ RUN apt-get update && apt-get install -y \
|
|
8 |
|
9 |
WORKDIR /app
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
COPY requirements.txt .
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
|
|
|
8 |
|
9 |
WORKDIR /app
|
10 |
|
11 |
+
# Set environment variables for writable directories
|
12 |
+
ENV MPLCONFIGDIR=/app/.config/matplotlib
|
13 |
+
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface
|
14 |
+
ENV LHOTSE_TOOLS=/app/.lhotse/tools
|
15 |
+
|
16 |
+
# Create writable directories
|
17 |
+
RUN mkdir -p $MPLCONFIGDIR $TRANSFORMERS_CACHE $LHOTSE_TOOLS
|
18 |
+
|
19 |
COPY requirements.txt .
|
20 |
RUN pip install --no-cache-dir -r requirements.txt
|
21 |
|