Download Dockerfile from inmodel/open-env: direct link, hf CLI and curl.
- Browser
- Download file 508 Bytes
-
https://huggingface.co/inmodel/open-env/resolve/main/Dockerfile
- Command line
-
hf download hf://inmodel/open-env/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/inmodel/open-env/resolve/main/Dockerfile
508 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies first (layer cache) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy all project files (needed for openenv validate to work inside) | |
| COPY . . | |
| # Environment defaults (Hugging Face Spaces use 7860) | |
| ENV PORT=7860 | |
| ENV PYTHONPATH=/app | |
| ENV ENABLE_WEB_INTERFACE=false | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "server.app:app", "--host", "0.0.0.0", "--port", "7860"] | |