Download Dockerfile from netha01/SOCEnv: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/spaces/netha01/SOCEnv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/netha01/SOCEnv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/netha01/SOCEnv/resolve/main/Dockerfile
401 Bytes
| # Dockerfile - AI SOC Gym | |
| # Exposes the environment as a FastAPI server on port 7860 | |
| FROM python:3.11-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user . /app | |
| RUN pip install --no-cache-dir --upgrade . | |
| # Port 7860 is required by HuggingFace Spaces | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |