This commit is contained in:
Mel M. van Veen
2024-11-30 19:33:49 +01:00
parent ea5ba51dc7
commit 2f416eb53e
15 changed files with 117 additions and 15432 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# Gebruik een multi-architecture versie van Node
FROM --platform=linux/amd64 node:18.19.0 as build
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install -g @angular/cli
# Verhoog de versie
RUN npm run bump-version
COPY . .
RUN ng build --configuration=production
# Gebruik een multi-architecture versie van Nginx
FROM --platform=linux/amd64 nginx:latest
# Kopieer de gecompileerde bestanden van Angular naar de Nginx-webserver
COPY --from=build /app/dist/wiv/browser /usr/share/nginx/html
EXPOSE 80