Download Dockerfile from proti0070/2ns: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/spaces/proti0070/2ns/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/proti0070/2ns/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/proti0070/2ns/resolve/main/Dockerfile
500 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y \ | |
| curl git build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY backend/ backend/ | |
| COPY frontend/ frontend/ | |
| # HF Spaces runs as uid 1000 | |
| RUN useradd -m -u 1000 user | |
| RUN mkdir -p /workspace/projects && chown -R user:user /app /workspace | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |