setup Angular app and integrate Docker image build in docker-compose.yml

This commit is contained in:
Thomas Peetz
2025-07-20 11:19:05 +02:00
parent 169b349277
commit 01788286e2
18 changed files with 145 additions and 33 deletions
+14
View File
@@ -0,0 +1,14 @@
### STAGE 1: Build ###
FROM node:22.15-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install
COPY . .
RUN npm run build
### STAGE 2: Run ###
FROM nginx:1.17.1-alpine
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY --from=build /app/dist/kontor-angular/browser /usr/share/nginx/html
EXPOSE 80