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
45c1ad4
commit 79277d9
Showing
3 changed files
with
16 additions
and
1 deletion.
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
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM --platform=$BUILDPLATFORM node:18.16.1-alpine AS builder | ||
RUN mkdir -p /app | ||
WORKDIR /app | ||
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 npm install | ||
RUN npm run build | ||
FROM nginxinc/nginx-unprivileged:alpine | ||
EXPOSE 8080 | ||
COPY conf/default.conf /etc/nginx/conf.d/ | ||
USER root | ||
RUN rm -rf /usr/share/nginx/html/* | ||
USER nginx | ||
COPY --from=builder app/dist/identity-manager /usr/share/nginx/html | ||
CMD ["nginx", "-g", "daemon off;"] |