Seounghyup commited on
Commit
d51e161
ยท
1 Parent(s): 095c06f

Fix cache directory permission issue

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -3
Dockerfile CHANGED
@@ -9,6 +9,14 @@ RUN apt-get update && apt-get install -y \
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
 
 
 
 
 
 
 
 
12
  # Python ํŒจํ‚ค์ง€ ์„ค์น˜
13
  COPY requirements.txt .
14
  RUN pip install --no-cache-dir -r requirements.txt
@@ -16,9 +24,6 @@ RUN pip install --no-cache-dir -r requirements.txt
16
  # ์•ฑ ํŒŒ์ผ ๋ณต์‚ฌ
17
  COPY app.py .
18
 
19
- # ๋ชจ๋ธ ํŒŒ์ผ์€ Git LFS๋กœ ์ž๋™ ๋‹ค์šด๋กœ๋“œ๋จ
20
- # (Hugging Face Spaces๊ฐ€ ์ž๋™์œผ๋กœ ์ฒ˜๋ฆฌ)
21
-
22
  # ํฌํŠธ ๋…ธ์ถœ
23
  EXPOSE 7860
24
 
 
9
  git \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # ์บ์‹œ ๋””๋ ‰ํ† ๋ฆฌ ์ƒ์„ฑ ๋ฐ ๊ถŒํ•œ ์„ค์ •
13
+ RUN mkdir -p /app/.cache && chmod 777 /app/.cache
14
+
15
+ # Hugging Face ์บ์‹œ ๊ฒฝ๋กœ ์„ค์ •
16
+ ENV HF_HOME=/app/.cache
17
+ ENV TRANSFORMERS_CACHE=/app/.cache
18
+ ENV HF_DATASETS_CACHE=/app/.cache
19
+
20
  # Python ํŒจํ‚ค์ง€ ์„ค์น˜
21
  COPY requirements.txt .
22
  RUN pip install --no-cache-dir -r requirements.txt
 
24
  # ์•ฑ ํŒŒ์ผ ๋ณต์‚ฌ
25
  COPY app.py .
26
 
 
 
 
27
  # ํฌํŠธ ๋…ธ์ถœ
28
  EXPOSE 7860
29