Download Dockerfile from Ajay00747/CyberSOC: direct link, hf CLI and curl.
- Browser
- Download file 578 Bytes
-
https://huggingface.co/spaces/Ajay00747/CyberSOC/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ajay00747/CyberSOC/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ajay00747/CyberSOC/resolve/main/Dockerfile
578 Bytes
| FROM python:3.10-slim | |
| # Create user with home directory | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY --chown=user ./requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| # Copy all environment files | |
| COPY --chown=user . /app | |
| # The hackathon expects the OpenEnv Server to run on 7860 for Spaces Gradio endpoints | |
| # We will use uvicorn to host the app which complies with the spec | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |