Merge branch 'main' of http://10.9.0.0/ttc/micro-frontend
All checks were successful
Build Docker Image / Build Docker Image (push) Successful in 6m8s

This commit is contained in:
x2Skyz
2025-11-23 18:16:02 +07:00
2 changed files with 11 additions and 1 deletions

View File

@@ -26,6 +26,10 @@ jobs:
ng build ng build
- name: Build docker image - name: Build docker image
run: | run: |
set +e
docker rm $(docker stop $(docker ps -a -q --filter ancestor=accounting-frontend:latest --format="{{.ID}}"))
set -e
docker image rm -f accounting-frontend:latest
docker build . -t accounting-frontend:latest docker build . -t accounting-frontend:latest

View File

@@ -1,4 +1,10 @@
FROM nginx:alpine FROM nginx:alpine
ADD nginx.conf /etc/nginx/nginx.conf RUN rm /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
ADD accounting-ng-nuttakit/dist/accounting-ng-nuttakit/browser /usr/share/nginx/html ADD accounting-ng-nuttakit/dist/accounting-ng-nuttakit/browser /usr/share/nginx/html
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]