Files
Dennis Hundertmark 3cf3da9886
continuous-integration/drone/pr Build is passing
fix: add nginx SPA fallback
2026-03-09 12:51:03 +01:00

15 lines
307 B
Docker

# Build Stage
FROM node:22-alpine AS builder
WORKDIR /app
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
# Runtime Stage
FROM nginx:alpine
COPY --from=builder /app/dist/*/browser /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]