Spaces:
Paused
Paused
Download Dockerfile from factorstudios/Zeup: direct link, hf CLI and curl.
- Browser
- Download file 764 Bytes
-
https://huggingface.co/spaces/factorstudios/Zeup/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/factorstudios/Zeup/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/factorstudios/Zeup/resolve/main/Dockerfile
764 Bytes
| # Use official Python base image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Create app directory | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install Python packages | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the code | |
| COPY . . | |
| # Make everything in /app world-writable | |
| RUN chmod -R 777 /app | |
| # Ensure /tmp is writable too (common scratch space) | |
| RUN chmod -R 777 /tmp | |
| # Default command to run the script (change as needed) | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |