Manifest with standalone display, dark theme color, 192/512 icons. NetworkFirst workbox strategy for API routes. Dockerfile uses --legacy-peer-deps for vite-plugin-pwa peer dep conflict with Vite 8. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 lines
269 B
Docker
12 lines
269 B
Docker
FROM node:20-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci --legacy-peer-deps
|
|
COPY . .
|
|
ARG VITE_API_URL=
|
|
RUN npm run build
|
|
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
EXPOSE 80
|