Spaces:
Sleeping
Sleeping
Download Dockerfile from tharu22/streamlit: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/tharu22/streamlit/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/tharu22/streamlit/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/tharu22/streamlit/resolve/main/Dockerfile
405 Bytes
| # Use a lightweight Python image as the base | |
| FROM python:3.9-slim | |
| # Set the working directory | |
| WORKDIR /app | |
| # Copy the project files to the container | |
| COPY . /app | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose Streamlit's default port | |
| EXPOSE 7860 | |
| # Command to run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |