Spaces:
Runtime error
Runtime error
Download Dockerfile from Tomoniai/Stablecode-Chat: direct link, hf CLI and curl.
- Browser
- Download file 341 Bytes
-
https://huggingface.co/spaces/Tomoniai/Stablecode-Chat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Tomoniai/Stablecode-Chat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Tomoniai/Stablecode-Chat/resolve/main/Dockerfile
341 Bytes
| FROM python:3.10 | |
| WORKDIR /app | |
| COPY ./requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN wget https://huggingface.co/stabilityai/stable-code-3b/resolve/main/stable-code-3b-Q6_K.gguf -O model.gguf | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| COPY --chown=user . . | |
| CMD ["python", "app.py"] | |