Spaces:
Runtime error
Runtime error
Download Dockerfile from ashwml/prometheus: direct link, hf CLI and curl.
- Browser
- Download file 376 Bytes
-
https://huggingface.co/spaces/ashwml/prometheus/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ashwml/prometheus/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ashwml/prometheus/resolve/main/Dockerfile
376 Bytes
| # pull python base image | |
| FROM python:3.10 | |
| COPY requirements.txt requirements.txt | |
| # update pip | |
| RUN pip install --upgrade pip | |
| # install dependencies | |
| RUN pip install -r requirements.txt | |
| RUN useradd -m -u 1000 myuser | |
| USER myuser | |
| # copy application files | |
| COPY --chown=myuser . . | |
| # expose port for application | |
| EXPOSE 8001 | |
| # start fastapi application | |
| CMD ["python", "app.py"] |