Spaces:
No application file
No application file
Download frontend/Dockerfile from dimensionalpulsar/adn: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/dimensionalpulsar/adn/resolve/main/frontend/Dockerfile
- Command line
-
hf download hf://spaces/dimensionalpulsar/adn/frontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dimensionalpulsar/adn/resolve/main/frontend/Dockerfile
681 Bytes
| # ── Stage 1: Build ──────────────────────────────────────────────────────────── | |
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| # ── Stage 2: Serve with Nginx ───────────────────────────────────────────────── | |
| FROM nginx:1.27-alpine AS production | |
| COPY --from=builder /app/dist /usr/share/nginx/html | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| EXPOSE 80 | |
| CMD ["nginx", "-g", "daemon off;"] | |