Create Dockerfile

This commit is contained in:
2025-01-29 18:06:11 +01:00
parent 17cbad0c06
commit 088663d71f
2 changed files with 431 additions and 436 deletions

21
Dockerfile Normal file
View File

@ -0,0 +1,21 @@
FROM node:18-alpine AS build
WORKDIR /app
COPY package.json package-lock.json ./
RUN npm install -g @angular/cli
RUN npm install --force # force is required for Tailwind
COPY . .
RUN npm run build -- --configuration production
FROM nginx:alpine
COPY --from=build /app/dist/swisssign-challenge-ui/browser /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]