Download Dockerfile from 21wisdom/wisdom_py: direct link, hf CLI and curl.
- Browser
- Download file 790 Bytes
-
https://huggingface.co/spaces/21wisdom/wisdom_py/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/21wisdom/wisdom_py/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/21wisdom/wisdom_py/resolve/main/Dockerfile
790 Bytes
| # HuggingFace Spaces โ ๋ ธ์ฝ๋ฉ Python+ ๋ฐฐํฌ์ฉ | |
| FROM python:3.11-slim | |
| # ํ๊ธ ํฐํธ ๋ฐ ๊ธฐ๋ณธ ํจํค์ง ์ค์น | |
| RUN apt-get update && apt-get install -y \ | |
| fonts-nanum \ | |
| fontconfig \ | |
| && fc-cache -fv \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Python ํจํค์ง ๋จผ์ ์ค์น (์บ์ ํ์ฉ) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # ์ฑ ํ์ผ ์ ์ฒด ๋ณต์ฌ | |
| COPY . . | |
| # static/ ํด๋ ์์ฑ ํ ํ์ผ ์ด๋ (๋ฃจํธ์ ์ ๋ก๋๋ ๊ฒฝ์ฐ ๋์) | |
| RUN mkdir -p static uploads results && \ | |
| for f in app.js index.html style.css; do \ | |
| [ -f "$f" ] && mv "$f" static/ || true; \ | |
| done | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |