Bikas0 commited on
Commit
a523e13
1 Parent(s): 0d64ea6

Dockerfile

Browse files
Files changed (1) hide show
  1. 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 a directory for NLTK data and set the environment variable
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