Download forgeenv-space/Dockerfile from akhiilll/forgeenv-source: direct link, hf CLI and curl.
- Browser
- Download file 596 Bytes
-
https://huggingface.co/akhiilll/forgeenv-source/resolve/main/forgeenv-space/Dockerfile
- Command line
-
hf download hf://akhiilll/forgeenv-source/forgeenv-space/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/akhiilll/forgeenv-source/resolve/main/forgeenv-space/Dockerfile
596 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PIP_NO_CACHE_DIR=1 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends git curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY forgeenv/ forgeenv/ | |
| COPY openenv.yaml . | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=20s --retries=3 \ | |
| CMD curl -f http://127.0.0.1:7860/health || exit 1 | |
| CMD ["uvicorn", "forgeenv.env.server:app", "--host", "0.0.0.0", "--port", "7860"] | |