Spaces:
Runtime error
Runtime error
Download Dockerfile from dongchan21/capstone-backend: direct link, hf CLI and curl.
- Browser
- Download file 710 Bytes
-
https://huggingface.co/spaces/dongchan21/capstone-backend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dongchan21/capstone-backend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dongchan21/capstone-backend/resolve/main/Dockerfile
710 Bytes
| # Python 3.9 ์ฌ๋ฆผ ๋ฒ์ ์ฌ์ฉ | |
| FROM python:3.9-slim | |
| # ์์ ๋๋ ํ ๋ฆฌ ์ค์ | |
| WORKDIR /app | |
| # ์์คํ ํจํค์ง ์ ๋ฐ์ดํธ ๋ฐ ํ์ ๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น (ํ์์) | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # ์์กด์ฑ ํ์ผ ๋ณต์ฌ ๋ฐ ์ค์น | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ์์ค ์ฝ๋ ๋ฐ ๋ฐ์ดํฐ ๋ณต์ฌ | |
| COPY . . | |
| # ๊ถํ ์ค์ (Hugging Face Spaces์์ ํ์ํ ์ ์์) | |
| RUN chmod -R 777 /app | |
| # ํฌํธ ์ค์ (Hugging Face Spaces ๊ธฐ๋ณธ ํฌํธ) | |
| EXPOSE 7860 | |
| # ์๋ฒ ์คํ ๋ช ๋ น | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |