generated from EOEPCA/um-service-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6b2133f
commit 036d962
Showing
2 changed files
with
19 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
FROM --platform=$BUILDPLATFORM angular/ngcontainer as builder | ||
FROM --platform=$BUILDPLATFORM node:18.16.1-alpine AS builder | ||
USER root | ||
RUN mkdir /app | ||
WORKDIR /app | ||
RUN npm install -g @angular/cli@13 | ||
COPY --chown=node:node src package.json package-lock.json angular.json tsconfig.app.json tsconfig.json tsconfig.spec.json .npmrc ./ | ||
RUN ng build --configuration=production | ||
COPY --chown=node:node src src | ||
COPY --chown=node:node package.json package-lock.json angular.json tsconfig.app.json tsconfig.json tsconfig.spec.json .npmrc ./ | ||
RUN ls | ||
RUN npm install | ||
RUN npm run build | ||
FROM nginx:1.25 | ||
EXPOSE 80 | ||
COPY conf/default.conf /etc/nginx/conf.d/ | ||
RUN rm -rf /usr/share/nginx/html/* | ||
COPY --from=builder dist/identity-manager /usr/share/nginx/html | ||
COPY --from=builder app/dist/identity-manager /usr/share/nginx/html | ||
CMD ["nginx", "-g", "daemon off;"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters