Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
@@ -10,11 +10,12 @@ WORKDIR /app
|
|
10 |
|
11 |
# Set environment variables for writable directories
|
12 |
ENV MPLCONFIGDIR=/app/.config/matplotlib
|
13 |
-
ENV
|
14 |
ENV LHOTSE_TOOLS=/app/.lhotse/tools
|
15 |
|
16 |
-
# Create writable directories
|
17 |
-
RUN mkdir -p $MPLCONFIGDIR $
|
|
|
18 |
|
19 |
COPY requirements.txt .
|
20 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
10 |
|
11 |
# Set environment variables for writable directories
|
12 |
ENV MPLCONFIGDIR=/app/.config/matplotlib
|
13 |
+
ENV HF_HOME=/app/.cache/huggingface
|
14 |
ENV LHOTSE_TOOLS=/app/.lhotse/tools
|
15 |
|
16 |
+
# Create writable directories and set permissions
|
17 |
+
RUN mkdir -p $MPLCONFIGDIR $HF_HOME $LHOTSE_TOOLS && \
|
18 |
+
chmod -R 777 $MPLCONFIGDIR $HF_HOME $LHOTSE_TOOLS
|
19 |
|
20 |
COPY requirements.txt .
|
21 |
RUN pip install --no-cache-dir -r requirements.txt
|