Files
ShopSolution-frontend/Dockerfile
Tizian.Breuch d5e58b57b2 df
2025-10-09 14:28:59 +02:00

13 lines
350 B
Docker

# ----- Stage 1: Build der Angular-Anwendung -----
FROM node:20-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install --legacy-peer-deps
COPY . .
RUN npm run build
# ----- Stage 2: Erstellen eines minimalen Images -----
FROM scratch
COPY --from=build /app/dist/frontend/ #
EXPOSE 80
# ----- Stage 2: Serven der Anwendung mit Nginx -----