Download Dockerfile from longxing/gmn2a: direct link, hf CLI and curl.
- Browser
- Download file 393 Bytes
-
https://huggingface.co/spaces/longxing/gmn2a/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/longxing/gmn2a/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/longxing/gmn2a/resolve/main/Dockerfile
393 Bytes
| FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY pyproject.toml . | |
| RUN uv sync | |
| # Copy application code | |
| COPY main.py . | |
| COPY admin.py . | |
| COPY admin.html . | |
| COPY gemini_session.py . | |
| # Expose the port the app runs on | |
| ENV PORT=7860 | |
| EXPOSE ${PORT} | |
| # Command to run the application | |
| CMD ["sh", "-c", "uv run uvicorn main:app --host 0.0.0.0 --port ${PORT}"] |