Files
homeschool-dashboard/frontend/Dockerfile
T
derekcandClaude Opus 5.5 6649a27218 chore(deps): bump node 24.21.0 → 24.22.3, nginx-unprivileged 1.30.5 → 1.30.6
Both alpine. nginx stays on the 1.30 stable branch (1.31 is mainline).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-16 23:37:53 -08:00

23 lines
395 B
Docker

# Stage 1: Build Vue.js app
FROM node:24.22.3-alpine AS builder
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm ci
COPY . .
RUN npm run build
# Stage 2: Serve with nginx
FROM nginxinc/nginx-unprivileged:1.30.6-alpine
USER root
RUN apk upgrade --no-cache
USER nginx
COPY --from=builder /app/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 8080