16 lines
382 B
Docker
16 lines
382 B
Docker
# 1) Build-Stage: Angular app bauen
|
|
FROM node:26-bookworm-slim AS build
|
|
WORKDIR /app
|
|
|
|
COPY package*.json ./
|
|
RUN npm ci
|
|
|
|
COPY . .
|
|
RUN npm run build -- --configuration production
|
|
|
|
# 2) Runtime-Stage: statische Files mit nginx ausliefern
|
|
FROM nginx:alpine
|
|
|
|
# Hier dein tatsächlicher Output-Path aus dem Build:
|
|
COPY --from=build /app/dist/mv-ng-typeahead/browser /usr/share/nginx/html
|