Spaces:
Runtime error
Runtime error
Download Dockerfile from theghostcmd/MayOne-Security-Framework: direct link, hf CLI and curl.
- Browser
- Download file 482 Bytes
-
https://huggingface.co/spaces/theghostcmd/MayOne-Security-Framework/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/theghostcmd/MayOne-Security-Framework/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/theghostcmd/MayOne-Security-Framework/resolve/main/Dockerfile
482 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Environment variables (as required by hackathon) | |
| ENV API_BASE_URL="" | |
| ENV MODEL_NAME="MayOne-Security-Framework" | |
| ENV HF_TOKEN="" | |
| # Optional for Docker image | |
| ENV LOCAL_IMAGE_NAME="" | |
| EXPOSE 7860 | |
| # Run the FastAPI server (entrypoint defined in openenv.yaml) | |
| CMD ["python", "-m", "server.app"] |