Bikas0 commited on
Commit
53b96bd
1 Parent(s): a523e13

Dockerfile

Browse files
Files changed (1) hide show
  1. 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 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
 
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