Create Dockerfile
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal 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;"]
|
846
package-lock.json
generated
846
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user