Download Dockerfile from ATS-27/UAIDE: direct link, hf CLI and curl.
- Browser
- Download file 904 Bytes
-
https://huggingface.co/spaces/ATS-27/UAIDE/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ATS-27/UAIDE/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ATS-27/UAIDE/resolve/main/Dockerfile
904 Bytes
| FROM node:20-bullseye AS frontend-builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY index.html vite.config.js ./ | |
| COPY public ./public | |
| COPY src ./src | |
| RUN npm run build | |
| FROM python:3.11-slim-bullseye | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY backend/requirements.txt /app/backend/requirements.txt | |
| RUN pip install --upgrade pip && pip install -r /app/backend/requirements.txt opencv-python-headless scipy scikit-image scikit-learn matplotlib joblib | |
| COPY . /app | |
| COPY --from=frontend-builder /app/dist /app/dist | |
| EXPOSE 7860 | |
| CMD ["python", "-m", "uvicorn", "backend.model_service:app", "--host", "0.0.0.0", "--port", "7860"] | |