Spaces:
Sleeping
Sleeping
Download Dockerfile from BrianLov/guiBackend: direct link, hf CLI and curl.
- Browser
- Download file 594 Bytes
-
https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/BrianLov/guiBackend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/BrianLov/guiBackend/resolve/main/Dockerfile
594 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install dependencies first (for faster caching) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy only the necessary code and weights | |
| COPY gui/ ./gui/ | |
| COPY CNN/ ./CNN/ | |
| COPY EBMs/ ./EBMs/ | |
| COPY GAN/ ./GAN/ | |
| COPY VAE/ ./VAE/ | |
| # Copy the pre-generated images and metrics | |
| COPY results/ ./results/ | |
| # Copy the model weights needed for live inference | |
| COPY *.pth ./ | |
| # Hugging Face Spaces require web apps to run on port 7860 | |
| EXPOSE 7860 | |
| # Run FastAPI | |
| CMD ["uvicorn", "gui.backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |