nami0342 commited on
Commit
7322ccd
ยท
1 Parent(s): 1aa7e02

Add cache directories

Browse files
Files changed (1) hide show
  1. Dockerfile +13 -7
Dockerfile CHANGED
@@ -4,17 +4,23 @@ COPY . .
4
 
5
  WORKDIR /
6
 
7
- # Set the Hugging Face cache directory
8
  ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
9
  RUN mkdir -p /tmp/huggingface_cache
10
 
11
- # Install OpenGL library for OpenCV
12
- RUN apt-get update && apt-get install -y libgl1
 
13
 
14
- # --- Debugging lines ---
15
- RUN ls -la /
16
- RUN cat /requirements.txt
17
- # --- End Debugging lines ---
 
 
 
 
 
18
 
19
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
20
 
 
4
 
5
  WORKDIR /
6
 
7
+ # Hugging Face ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ • ๋ฐ ์ƒ์„ฑ
8
  ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
9
  RUN mkdir -p /tmp/huggingface_cache
10
 
11
+ # Matplotlib ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ • ๋ฐ ์ƒ์„ฑ
12
+ ENV MPLCONFIGDIR=/tmp/matplotlib_cache
13
+ RUN mkdir -p /tmp/matplotlib_cache
14
 
15
+ # ํ•„์š”ํ•œ ๊ฒฝ์šฐ, ์ปจํ…Œ์ด๋„ˆ ์‚ฌ์šฉ์ž ๋ฐ ๊ทธ๋ฃน ํ™•์ธ ํ›„ ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ๊ถŒํ•œ ๋ณ€๊ฒฝ
16
+ # ์˜ˆ์‹œ: RUN chown -R your_user:your_group /tmp/huggingface_cache /tmp/matplotlib_cache
17
+
18
+ # --- ๋””๋ฒ„๊น… ๋ผ์ธ ---
19
+ RUN ls -la /tmp
20
+ RUN ls -la /tmp/huggingface_cache
21
+ RUN ls -la /tmp/matplotlib_cache
22
+ RUN cat /requirements.txt
23
+ # --- ๋””๋ฒ„๊น… ๋ผ์ธ ๋ ---
24
 
25
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
26