Spaces:
Configuration error
Configuration error
Download Dockerfile from JDVariadic/gpt2-article-generator: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/spaces/JDVariadic/gpt2-article-generator/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/JDVariadic/gpt2-article-generator/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/JDVariadic/gpt2-article-generator/resolve/main/Dockerfile
381 Bytes
| FROM python:3.12.2 | |
| #COPY . . | |
| WORKDIR /code | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| Run useradd -m -u 1000 useradd | |
| USER user | |
| ENV Home=home/user \ | |
| Path=/home/user/.local/bin:$Path | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |