Spaces:
Build error
Build error
Download Dockerfile from Ejdjdososs/opencode-hub: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/Ejdjdososs/opencode-hub/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ejdjdososs/opencode-hub/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ejdjdososs/opencode-hub/resolve/main/Dockerfile
356 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| curl \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| ENV HOST=0.0.0.0 | |
| ENV PORT=7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |