Spaces:
Runtime error
Runtime error
Download Dockerfile from cryogenic22/InsightO: direct link, hf CLI and curl.
- Browser
- Download file 537 Bytes
-
https://huggingface.co/spaces/cryogenic22/InsightO/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/cryogenic22/InsightO/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/cryogenic22/InsightO/resolve/main/Dockerfile
537 Bytes
| FROM python:3.9-slim | |
| WORKDIR /code | |
| # Create cache directory with proper permissions | |
| RUN mkdir -p /.cache && chmod 777 /.cache | |
| COPY requirements.txt . | |
| COPY app.py . | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| python3-dev && \ | |
| pip install --no-cache-dir -r requirements.txt && \ | |
| apt-get remove -y build-essential python3-dev && \ | |
| apt-get autoremove -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |