Files
weetikveel/Dockerfile
Mel M. van Veen 4cd7873f47 init
2024-12-01 20:16:06 +01:00

25 lines
502 B
Docker

# Gebruik een multi-architecture versie van Node
FROM --platform=linux/amd64 node:18.19.0 as build
WORKDIR /app
RUN npm run bump-version
COPY package*.json ./
RUN npm install
RUN npm install -g @angular/cli
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