Download Dockerfile from bardd/centerpay: direct link, hf CLI and curl.
- Browser
- Download file 574 Bytes
-
https://huggingface.co/spaces/bardd/centerpay/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bardd/centerpay/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bardd/centerpay/resolve/main/Dockerfile
574 Bytes
| FROM node:22-bookworm-slim AS frontend | |
| WORKDIR /frontend | |
| COPY frontend/package*.json ./ | |
| RUN npm ci --no-audit --no-fund | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| FROM python:3.13-slim-bookworm | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir --retries 8 --timeout 120 -r requirements.txt | |
| COPY server.py ./ | |
| COPY --from=frontend /frontend/dist ./frontend/dist | |
| RUN useradd -m -u 1000 centerpay | |
| USER centerpay | |
| ENV PYTHONUNBUFFERED=1 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860", "--proxy-headers", "--forwarded-allow-ips", "*"] | |