Spaces:
Running
Running
Download Dockerfile from CongWei1230/AgentGen-Bench: direct link, hf CLI and curl.
- Browser
- Download file 442 Bytes
-
https://huggingface.co/spaces/CongWei1230/AgentGen-Bench/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CongWei1230/AgentGen-Bench/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CongWei1230/AgentGen-Bench/resolve/main/Dockerfile
442 Bytes
| # Build Stage: Build the Vite frontend | |
| FROM node:22-slim AS build | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY . . | |
| RUN npm run build | |
| # Runtime Stage: serve the validated, versioned static artifacts | |
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy the built frontend from build stage | |
| COPY --from=build /app/dist ./dist | |
| # Expose port 7860 (Hugging Face default) | |
| EXPOSE 7860 | |
| CMD ["python3", "-m", "http.server", "7860", "--directory", "dist"] | |