Download Dockerfile from DataEyond/Frontend-Data-Eyond: direct link, hf CLI and curl.
- Browser
- Download file 582 Bytes
-
https://huggingface.co/spaces/DataEyond/Frontend-Data-Eyond/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DataEyond/Frontend-Data-Eyond/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DataEyond/Frontend-Data-Eyond/resolve/main/Dockerfile
582 Bytes
| # Stage 1: Build | |
| FROM node:22-alpine AS builder | |
| RUN corepack enable && corepack prepare pnpm@latest --activate | |
| WORKDIR /app | |
| COPY pnpm-workspace.yaml package.json pnpm-lock.yaml* pnpm-lock.json* ./ | |
| RUN pnpm install --no-frozen-lockfile | |
| ARG VITE_API_BASE_VOICE_URL | |
| ARG VITE_API_BASE_VOICE_WS_URL | |
| ENV VITE_API_BASE_VOICE_URL=$VITE_API_BASE_VOICE_URL | |
| ENV VITE_API_BASE_VOICE_WS_URL=$VITE_API_BASE_VOICE_WS_URL | |
| COPY . . | |
| RUN pnpm build | |
| # Stage 2: Serve | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| COPY --from=builder /app/dist ./dist | |
| COPY server.js . | |
| EXPOSE 7860 | |
| CMD ["node", "server.js"] | |