23 lines
489 B
Docker
23 lines
489 B
Docker
# Gebruik een multi-architecture versie van Node
|
|
FROM --platform=linux/amd64 node:22.0.0 as build
|
|
|
|
WORKDIR /app
|
|
|
|
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/job-findr-frontend/browser /usr/share/nginx/html
|
|
|
|
EXPOSE 80
|