Skip to content

Commit

Permalink
Add develop workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-pimenta-DME committed Jul 5, 2023
1 parent 45c1ad4 commit 79277d9
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
context: .
file: ./Dockerfile
file: ./Dockerfile.develop
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions Dockerfile.develop
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;"]

0 comments on commit 79277d9

Please sign in to comment.