Spaces:
Sleeping
Sleeping
Download Dockerfile from 1akshith/interior-env: direct link, hf CLI and curl.
- Browser
- Download file 382 Bytes
-
https://huggingface.co/spaces/1akshith/interior-env/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/1akshith/interior-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/1akshith/interior-env/resolve/main/Dockerfile
382 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=10s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7860/health')" | |
| CMD ["uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |