Spaces:
Runtime error
Runtime error
Download Dockerfile from naverz/narrative_api: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/naverz/narrative_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/naverz/narrative_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/naverz/narrative_api/resolve/main/Dockerfile
518 Bytes
| FROM python:3.10 | |
| # ํ์ํ ํจํค์ง ์ค์น (์ฌ๊ธฐ์๋ git ํฌํจ) | |
| RUN apt-get update \ | |
| && apt-get install -y git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # non-root ์ฌ์ฉ์ ์์ฑ | |
| RUN useradd -m myuser | |
| # ์์ ๋๋ ํ ๋ฆฌ ์ค์ | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # ํ์ผ ์์ ๊ถ ๋ณ๊ฒฝ | |
| RUN chown -R myuser:myuser /app | |
| COPY entrypoint.sh entrypoint.sh | |
| RUN chmod +x entrypoint.sh | |
| # ์ฌ์ฉ์ ๋ณ๊ฒฝ | |
| USER myuser | |
| CMD ["./entrypoint.sh"] |