Spaces:
Runtime error
Runtime error
Download Dockerfile from RageCoder2006/radai-api: direct link, hf CLI and curl.
- Browser
- Download file 280 Bytes
-
https://huggingface.co/spaces/RageCoder2006/radai-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RageCoder2006/radai-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RageCoder2006/radai-api/resolve/main/Dockerfile
280 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt /app/ | |
| RUN pip install --no-cache-dir -r requirements.txt gunicorn | |
| COPY . . | |
| EXPOSE 7860 | |
| RUN useradd -m -u 1000 user | |
| RUN chown -R user:user /app | |
| USER user | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "120"] | |