Spaces:
Sleeping
Sleeping
Download Dockerfile from mohith96/SuperKartFrontend: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/spaces/mohith96/SuperKartFrontend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mohith96/SuperKartFrontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mohith96/SuperKartFrontend/resolve/main/Dockerfile
619 Bytes
| # Base image: lightweight Python 3.9 | |
| FROM python:3.9-slim-buster | |
| # Set container working directory | |
| WORKDIR /app | |
| # Copy project files into the container | |
| COPY . /app | |
| # Environment variable for Streamlit configuration | |
| ENV STREAMLIT_CONFIG_DIR=/app/.streamlit | |
| # Create the Streamlit configuration directory | |
| RUN mkdir -p ${STREAMLIT_CONFIG_DIR} | |
| # Install dependencies (no cache) | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Default command to run the Streamlit app | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.port=8501", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.enableXsrfProtection=false"] | |