Spaces:
Sleeping
Sleeping
Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -8,9 +8,11 @@ WORKDIR /app
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Create directories for NLTK and Hugging Face cache data and set environment variables
|
11 |
-
RUN mkdir -p /app/nltk_data /app/.cache/huggingface
|
|
|
|
|
12 |
ENV NLTK_DATA=/app/nltk_data
|
13 |
-
ENV
|
14 |
|
15 |
# Install any needed packages specified in requirements.txt
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
8 |
COPY . /app
|
9 |
|
10 |
# Create directories for NLTK and Hugging Face cache data and set environment variables
|
11 |
+
RUN mkdir -p /app/nltk_data /app/.cache/huggingface /app/.huggingface_cache \
|
12 |
+
&& chown -R 1000:1000 /app/nltk_data /app/.cache/huggingface /app/.huggingface_cache
|
13 |
+
|
14 |
ENV NLTK_DATA=/app/nltk_data
|
15 |
+
ENV HF_HOME=/app/.huggingface_cache
|
16 |
|
17 |
# Install any needed packages specified in requirements.txt
|
18 |
RUN pip install --no-cache-dir -r requirements.txt
|