Spaces:
Sleeping
Sleeping
Download Dockerfile from peterpeter8585/codespace: direct link, hf CLI and curl.
- Browser
- Download file 687 Bytes
-
https://huggingface.co/spaces/peterpeter8585/codespace/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/peterpeter8585/codespace/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/peterpeter8585/codespace/resolve/main/Dockerfile
687 Bytes
| # ๋ฒ ์ด์ค ์ด๋ฏธ์ง: ๊ฒฝ๋ + ๋ณด์ ์ ๋ฐ์ดํธ ์ต์ | |
| FROM python:3.11-slim | |
| # ํ์ ํจํค์ง (ํ ๋น๋ ๋๋น) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential curl ca-certificates git && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # ์ํน ๋๋ ํฐ๋ฆฌ | |
| WORKDIR /app | |
| # ์์กด์ฑ ๋จผ์ ๋ณต์ฌ โ ์บ์ ํ์ฉ | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ์ ํ๋ฆฌ์ผ์ด์ ์ ์ฒด ๋ณต์ฌ | |
| COPY . /app | |
| # ๋น๋ฃจํธ ์ ์ ๋ก ์ ํ (๋ณด์) | |
| RUN useradd -m appuser && chown -R appuser:appuser /app | |
| USER appuser | |
| # ํฌํธ/ํ๊ฒฝ | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # ์คํ | |
| CMD ["python", "-m", "app.main"] |