Spaces:
Sleeping
Sleeping
Download Dockerfile from DS-Outputs/QuickDraw10: direct link, hf CLI and curl.
- Browser
- Download file 622 Bytes
-
https://huggingface.co/spaces/DS-Outputs/QuickDraw10/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DS-Outputs/QuickDraw10/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DS-Outputs/QuickDraw10/resolve/main/Dockerfile
622 Bytes
| # Use official Python image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set work directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy project files | |
| COPY . /app | |
| # Install Python dependencies | |
| RUN pip install --upgrade pip | |
| RUN pip install -r requirements.txt | |
| # Expose Streamlit port | |
| EXPOSE 7860 | |
| # Run Streamlit app | |
| CMD ["streamlit", "run", "quickdraw_app.py", "--server.port=7860", "--server.address=0.0.0.0"] |