This commit is contained in:
2025-01-19 23:12:34 +01:00
parent a422b62fc1
commit 4741ab8419
11 changed files with 281 additions and 343 deletions

22
Dockerfile Normal file
View File

@@ -0,0 +1,22 @@
# 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