Spaces:
Paused
Paused
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -15,5 +15,9 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 15 |
# ํ์ฌ ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์ ๋ชจ๋ ํ์ผ(.py, Procfile ๋ฑ)์ ์ปจํ
์ด๋๋ก ๋ณต์ฌํฉ๋๋ค.
|
| 16 |
COPY . .
|
| 17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
# ์น ์๋ฒ ์คํ ๋ช
๋ น์ด๋ฅผ ์คํํฉ๋๋ค.
|
| 19 |
CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "app:app", "--bind", "0.0.0.0:7860"]
|
|
|
|
| 15 |
# ํ์ฌ ๋ก์ปฌ ๋๋ ํ ๋ฆฌ์ ๋ชจ๋ ํ์ผ(.py, Procfile ๋ฑ)์ ์ปจํ
์ด๋๋ก ๋ณต์ฌํฉ๋๋ค.
|
| 16 |
COPY . .
|
| 17 |
|
| 18 |
+
# ๋ชจ๋ธ ์บ์ ๊ฒฝ๋ก๋ฅผ /app/.cache๋ก ์ง์ ํ์ฌ ์ฐ๊ธฐ ๊ถํ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํฉ๋๋ค.
|
| 19 |
+
ENV SENTENCE_TRANSFORMERS_HOME /app/.cache
|
| 20 |
+
ENV HUGGINGFACE_HUB_CACHE /app/.cache
|
| 21 |
+
|
| 22 |
# ์น ์๋ฒ ์คํ ๋ช
๋ น์ด๋ฅผ ์คํํฉ๋๋ค.
|
| 23 |
CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "app:app", "--bind", "0.0.0.0:7860"]
|