Spaces:
Sleeping
Sleeping
Add user to server
Browse files- 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 |
|