Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
|
@@ -11,6 +11,14 @@ ENV PATH=$JAVA_HOME/bin:$PATH
|
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
COPY requirements.txt .
|
| 15 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 16 |
|
|
|
|
| 11 |
|
| 12 |
WORKDIR /app
|
| 13 |
|
| 14 |
+
# 1. Hugging Face 캐시 디렉토리를 /app/.cache로 설정
|
| 15 |
+
ENV HF_HOME /app/.cache/huggingface
|
| 16 |
+
# 2. 다운로드 권한 문제를 피하기 위해 /app 디렉토리의 모든 권한을 열어줍니다.
|
| 17 |
+
RUN chmod -R 777 /app
|
| 18 |
+
# 3. /app/.cache 디렉토리를 미리 생성하여 권한 문제를 방지
|
| 19 |
+
RUN mkdir -p /app/.cache/huggingface
|
| 20 |
+
|
| 21 |
+
|
| 22 |
COPY requirements.txt .
|
| 23 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 24 |
|