File tree Expand file tree Collapse file tree 5 files changed +28
-28
lines changed Expand file tree Collapse file tree 5 files changed +28
-28
lines changed Original file line number Diff line number Diff line change 3838 - name : Build the docker image
3939 run : |-
4040 docker build \
41- --target production_prod -t timetracker_ui \
41+ --target production_prod -t timetracker_ui -f Dockerfile_prod \
4242 .
4343
4444 - name : Publish docker image to prod azure container registry
Original file line number Diff line number Diff line change 3838 - name : Build the docker image
3939 run : |-
4040 docker build \
41- --target production_stage -t timetracker_ui \
41+ --target production -t timetracker_ui -f Dockerfile_stage \
4242 .
4343
4444 - name : Publish docker image to stage azure container registry
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ FROM node:14-alpine AS building
2+ WORKDIR /app
3+ COPY . /app
4+ RUN npm cache clean --force && npm install
5+ EXPOSE 4200 9876
6+ RUN source .prod.env && npm run build
7+
8+
9+ FROM nginx:1.21 AS production
10+ COPY nginx.conf /etc/nginx/conf.d/default.conf
11+ COPY --from=building /app/dist/time-tracker /usr/share/nginx/html
12+ EXPOSE 80
13+
Original file line number Diff line number Diff line change 1+ FROM node:14-alpine AS building
2+ WORKDIR /app
3+ COPY . /app
4+ RUN npm cache clean --force && npm install
5+ EXPOSE 4200 9876
6+ RUN source .stage.env && npm run build
7+
8+
9+ FROM nginx:1.21 AS production
10+ COPY nginx.conf /etc/nginx/conf.d/default.conf
11+ COPY --from=building /app/dist/time-tracker /usr/share/nginx/html
12+ EXPOSE 80
13+
You can’t perform that action at this time.
0 commit comments