Update pipeline script

This commit is contained in:
Murtadha 2024-07-12 01:02:14 -04:00
parent 38e133a98e
commit 77a99e2deb
2 changed files with 2 additions and 2 deletions

View file

@ -39,6 +39,6 @@ pipeline:
- docker build -t frontend:${CI_COMMIT_SHA} .
- docker stop frontend || true
- docker rm frontend || true
- docker run -d --name frontend -p 5173:5173 frontend:${CI_COMMIT_SHA}
- docker run -d --name frontend -p 5173:80 frontend:${CI_COMMIT_SHA}
when:
branch: master

View file

@ -2,5 +2,5 @@
FROM nginx:alpine
COPY dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 5173
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]