farwew commited on
Commit
ad9cd2f
·
verified ·
1 Parent(s): 93e476e

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -6,10 +6,11 @@ COPY . /app/
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Download NLTK stopwords ke path yang benar
10
- RUN python -m nltk.downloader -d /usr/local/share/nltk_data stopwords
11
-
12
- ENV NLTK_DATA=/usr/local/share/nltk_data
 
13
 
14
  EXPOSE 8000
15
 
 
6
 
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
+ # Cache folder (izin tulis)
10
+ RUN mkdir -p /app/cache
11
+ ENV TRANSFORMERS_CACHE=/app/cache
12
+ ENV HF_HOME=/app/cache
13
+ ENV HF_DATASETS_CACHE=/app/cache
14
 
15
  EXPOSE 8000
16