Download Dockerfile from Freakdivi/HelpDesk: direct link, hf CLI and curl.
- Browser
- Download file 518 Bytes
-
https://huggingface.co/spaces/Freakdivi/HelpDesk/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Freakdivi/HelpDesk/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Freakdivi/HelpDesk/resolve/main/Dockerfile
518 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PYTHONPATH=/app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| COPY . /app/helpdesk_env | |
| EXPOSE 8000 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health')" || exit 1 | |
| CMD ["uvicorn", "helpdesk_env.server.app:app", "--host", "0.0.0.0", "--port", "8000"] | |