Cybersecurity-Projects/PROJECTS/advanced/honeypot-network/infra/docker/vite.prod

25 lines
453 B
Plaintext

# ©AngelaMos | 2026
# vite.prod
FROM node:24-alpine AS builder
RUN corepack enable && corepack prepare pnpm@latest --activate
WORKDIR /build
COPY frontend/package.json frontend/pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile
COPY frontend/ .
RUN pnpm build
FROM nginx:1.27-alpine
COPY --from=builder /build/dist /usr/share/nginx/html
COPY infra/nginx/hive.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]