Spaces:
Paused
Paused
Download Dockerfile from modventures/iris: direct link, hf CLI and curl.
- Browser
- Download file 797 Bytes
-
https://huggingface.co/spaces/modventures/iris/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/modventures/iris/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/modventures/iris/resolve/main/Dockerfile
797 Bytes
| FROM node:22-alpine AS frontend | |
| WORKDIR /build | |
| COPY frontend/package.json frontend/package-lock.json ./ | |
| RUN npm ci | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| FROM python:3.12-slim | |
| ENV PYTHONUNBUFFERED=1 PYTHONDONTWRITEBYTECODE=1 | |
| # opencv-python-headless still links libglib; libgomp backs numpy/opencv threading. | |
| RUN apt-get update && apt-get install -y --no-install-recommends libglib2.0-0 libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user backend/ ./backend/ | |
| COPY --chown=user:user reports/ ./reports/ | |
| COPY --from=frontend --chown=user:user /build/dist ./frontend/dist | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.app:app", "--host", "0.0.0.0", "--port", "7860"] | |