Spaces:
Paused
Paused
Download Dockerfile from triflix/simplefluxdevv: direct link, hf CLI and curl.
- Browser
- Download file 416 Bytes
-
https://huggingface.co/spaces/triflix/simplefluxdevv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/triflix/simplefluxdevv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/triflix/simplefluxdevv/resolve/main/Dockerfile
416 Bytes
| # Use an official Python base image | |
| FROM python:3.10-slim | |
| # Set environment variables | |
| ENV PORT 7860 | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| # Set working directory | |
| WORKDIR /app | |
| RUN pip install fastapi uvicorn jinja2 requests python-multipart | |
| # Copy the app files | |
| COPY . . | |
| # Expose port for Hugging Face | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |