Download Dockerfile from WellmatixGenAI/pfas-sbead-optimization: direct link, hf CLI and curl.
- Browser
- Download file 366 Bytes
-
https://huggingface.co/spaces/WellmatixGenAI/pfas-sbead-optimization/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/WellmatixGenAI/pfas-sbead-optimization/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/WellmatixGenAI/pfas-sbead-optimization/resolve/main/Dockerfile
366 Bytes
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir streamlit -r requirements.txt | |
| COPY --chown=user . . | |
| USER user | |
| EXPOSE 8501 | |
| HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 | |
| ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"] | |