Spaces:
Sleeping
Sleeping
Download Dockerfile from ChristopherJKoen/Prosento_RepEx: direct link, hf CLI and curl.
- Browser
- Download file 749 Bytes
-
https://huggingface.co/spaces/ChristopherJKoen/Prosento_RepEx/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ChristopherJKoen/Prosento_RepEx/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ChristopherJKoen/Prosento_RepEx/resolve/main/Dockerfile
749 Bytes
| FROM node:20 AS frontend | |
| WORKDIR /app | |
| COPY frontend/package*.json frontend/ | |
| RUN cd frontend && rm -f package-lock.json && npm install --include=optional --no-audit --no-fund | |
| COPY frontend frontend | |
| RUN cd frontend && npm run build | |
| FROM python:3.11-slim | |
| WORKDIR /app | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV FRONTEND_BASE_URL=http://localhost:7860 | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY server/requirements.txt server/requirements.txt | |
| RUN pip install --no-cache-dir -r server/requirements.txt | |
| COPY server server | |
| COPY --from=frontend /app/frontend/dist frontend/dist | |
| EXPOSE 7860 | |
| CMD ["uvicorn","server.app.main:app","--host","0.0.0.0","--port","7860"] | |