Spaces:
Sleeping
Sleeping
Download Dockerfile from NUSExecEd/agentic-workflow-node-lab: direct link, hf CLI and curl.
- Browser
- Download file 690 Bytes
-
https://huggingface.co/spaces/NUSExecEd/agentic-workflow-node-lab/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NUSExecEd/agentic-workflow-node-lab/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NUSExecEd/agentic-workflow-node-lab/resolve/main/Dockerfile
690 Bytes
| FROM node:22-alpine AS frontend | |
| WORKDIR /app/frontend | |
| RUN corepack enable | |
| COPY frontend/package.json frontend/pnpm-lock.yaml frontend/pnpm-workspace.yaml ./ | |
| RUN pnpm install --frozen-lockfile | |
| COPY frontend/ ./ | |
| RUN pnpm run build | |
| FROM python:3.12-slim | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PORT=7860 | |
| WORKDIR $HOME/app | |
| COPY --chown=user requirements.txt ./ | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user backend/ ./backend/ | |
| COPY --chown=user --from=frontend /app/frontend/dist ./frontend/dist/ | |
| EXPOSE 7860 | |
| CMD ["sh", "-c", "uvicorn backend.main:app --host 0.0.0.0 --port ${PORT}"] |