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

Set libgl1 install command

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -10
Dockerfile CHANGED
@@ -4,23 +4,23 @@ COPY . .
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
 
 
4
 
5
  WORKDIR /
6
 
7
+ # Hugging Face ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ • ๋ฐ ์ƒ์„ฑ (HF_HOME ๊ณ ๋ ค)
8
  ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
9
+ ENV HF_HOME=/tmp/huggingface_home
10
+ RUN mkdir -p /tmp/huggingface_cache /tmp/huggingface_home
11
 
12
  # Matplotlib ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์„ค์ • ๋ฐ ์ƒ์„ฑ
13
  ENV MPLCONFIGDIR=/tmp/matplotlib_cache
14
  RUN mkdir -p /tmp/matplotlib_cache
15
 
16
+ # OpenGL ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์„ค์น˜ (opencv-python ์„ค์น˜ ์ „์—)
17
+ RUN apt-get update && apt-get install -y libgl1
18
 
19
+ # ํ•„์š”ํ•œ ๊ฒฝ์šฐ, ์ปจํ…Œ์ด๋„ˆ ์‚ฌ์šฉ์ž ํ™•์ธ ํ›„ ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ๊ถŒํ•œ ๋ณ€๊ฒฝ
20
+ # ์˜ˆ์‹œ (์ผ๋ฐ˜์ ์ธ ๊ฒฝ์šฐ):
21
+ # RUN adduser -D myuser
22
+ # USER myuser
23
+ # RUN chown -R myuser:myuser /tmp/huggingface_cache /tmp/huggingface_home /tmp/matplotlib_cache
 
24
 
25
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
26