Spaces:
Build error
Build error
Download Dockerfile from smdbs/CS553_CaseStudy1: direct link, hf CLI and curl.
- Browser
- Download file 547 Bytes
-
https://huggingface.co/spaces/smdbs/CS553_CaseStudy1/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/smdbs/CS553_CaseStudy1/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/smdbs/CS553_CaseStudy1/resolve/main/Dockerfile
547 Bytes
| FROM python:3.10-slim | |
| WORKDIR /opt/app | |
| COPY app.py requirements.txt /opt/app/ | |
| RUN pip install --no-cache-dir -r /opt/app/requirements.txt | |
| # Install packages that we need. vim is for helping with debugging | |
| ENV DEBIAN_FRONTEND noninteractive | |
| RUN apt-get update && \ | |
| apt-get upgrade -yq ca-certificates && \ | |
| apt-get install -yq --no-install-recommends \ | |
| prometheus-node-exporter | |
| EXPOSE 7860 | |
| EXPOSE 8000 | |
| EXPOSE 9100 | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| CMD bash -c "prometheus-node-exporter --web.listen-address=':9100' & python /opt/app/app.py" |