Spaces:
Sleeping
Sleeping
Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -7,9 +7,10 @@ WORKDIR /app
|
|
7 |
# Copy the current directory contents into the container at /app
|
8 |
COPY . /app
|
9 |
|
10 |
-
# Create
|
11 |
-
RUN mkdir -p /app/nltk_data
|
12 |
ENV NLTK_DATA=/app/nltk_data
|
|
|
13 |
|
14 |
# Install any needed packages specified in requirements.txt
|
15 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
7 |
# Copy the current directory contents into the container at /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 TRANSFORMERS_CACHE=/app/.cache/huggingface
|
14 |
|
15 |
# Install any needed packages specified in requirements.txt
|
16 |
RUN pip install --no-cache-dir -r requirements.txt
|