vumichien commited on
Commit
ba982f5
·
1 Parent(s): c25d447

Add application file

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -4
Dockerfile CHANGED
@@ -9,11 +9,9 @@ RUN apt-get update && apt-get install -y \
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Tạo các thư mục cần thiết và cấp quyền
12
- RUN mkdir -p /tmp/matplotlib-cache /tmp/huggingface-cache && \
13
- chmod 777 /tmp/matplotlib-cache /tmp/huggingface-cache
14
 
15
- # Thiết lập biến môi trường cho Matplotlib và Hugging Face
16
- ENV MPLCONFIGDIR=/tmp/matplotlib-cache
17
  ENV TRANSFORMERS_CACHE=/tmp/huggingface-cache
18
  ENV HF_HOME=/tmp/huggingface-cache
19
  ENV HF_DATASETS_CACHE=/tmp/huggingface-cache
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
  # Tạo các thư mục cần thiết và cấp quyền
12
+ RUN mkdir -p /app/data /app/temp /tmp/huggingface-cache && \
13
+ chmod -R 777 /app/data /app/temp /tmp/huggingface-cache
14
 
 
 
15
  ENV TRANSFORMERS_CACHE=/tmp/huggingface-cache
16
  ENV HF_HOME=/tmp/huggingface-cache
17
  ENV HF_DATASETS_CACHE=/tmp/huggingface-cache