Spaces:
Sleeping
Sleeping
Download Dockerfile from uchihamadara1816/AutoDataLab2.0: direct link, hf CLI and curl.
- Browser
- Download file 461 Bytes
-
https://huggingface.co/spaces/uchihamadara1816/AutoDataLab2.0/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/uchihamadara1816/AutoDataLab2.0/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/uchihamadara1816/AutoDataLab2.0/resolve/main/Dockerfile
461 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PIP_DISABLE_PIP_VERSION_CHECK=1 | |
| WORKDIR /app | |
| COPY . . | |
| RUN pip install --no-cache-dir . | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/health', timeout=3).read()" || exit 1 | |
| CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |