Spaces:
Sleeping
Sleeping
Download Dockerfile from HFPRXV/autoinventory: direct link, hf CLI and curl.
- Browser
- Download file 638 Bytes
-
https://huggingface.co/spaces/HFPRXV/autoinventory/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HFPRXV/autoinventory/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HFPRXV/autoinventory/resolve/main/Dockerfile
638 Bytes
| FROM node:20-bullseye AS frontend-build | |
| WORKDIR /app/frontend | |
| COPY frontend/package.json ./ | |
| RUN npm install | |
| COPY frontend ./ | |
| RUN npm run build | |
| FROM python:3.10-slim AS backend | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| COPY backend/requirements.txt ./requirements.txt | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY backend ./backend | |
| COPY --from=frontend-build /app/frontend/dist ./frontend/dist | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "backend.main:app", "--host", "0.0.0.0", "--port", "7860"] | |