Download Dockerfile from shingguy1/demo: direct link, hf CLI and curl.
- Browser
- Download file 631 Bytes
-
https://huggingface.co/spaces/shingguy1/demo/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/shingguy1/demo/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/shingguy1/demo/resolve/main/Dockerfile
631 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system libraries required by Pillow and Streamlit uploader | |
| RUN apt-get update && apt-get install -y \ | |
| libjpeg-dev \ | |
| zlib1g-dev \ | |
| libpng-dev \ | |
| libopenjp2-7 \ | |
| libtiff-dev \ | |
| libfreetype6-dev \ | |
| fonts-dejavu-core \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy and install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your Streamlit app | |
| COPY src/streamlit_app.py . | |
| EXPOSE 8501 | |
| CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"] | |