nami0342 commited on
Commit
979d308
ยท
1 Parent(s): 49d7f7f

Add user to server

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