Build and Push Multi-Platform Images / build-and-push (push) Successful in 1m22s
Node 20 ist seit April 2026 End-of-Life. Backend- und Frontend-Images laufen jetzt auf node:24-alpine; @types/node im Backend auf ^24 angehoben. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
24 lines
511 B
Docker
24 lines
511 B
Docker
# Build
|
|
FROM node:24-alpine AS builder
|
|
WORKDIR /app
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
COPY . .
|
|
ARG VITE_API_URL
|
|
ARG VITE_OIDC_AUTHORITY
|
|
ARG VITE_OIDC_CLIENT_ID
|
|
RUN npm run build
|
|
|
|
# Serve via nginx
|
|
FROM nginx:alpine
|
|
COPY --from=builder /app/dist /usr/share/nginx/html
|
|
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
|
|
|
# Runtime env injection script
|
|
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
|
RUN chmod +x /docker-entrypoint.sh
|
|
|
|
EXPOSE 80
|
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
|
CMD ["nginx", "-g", "daemon off;"]
|