Fixed docker file & added publish step to CI/CD
This commit is contained in:
parent
499c994f39
commit
dc6e8f6c41
@ -86,7 +86,7 @@ production:
|
|||||||
image: node:16
|
image: node:16
|
||||||
cache: [ ]
|
cache: [ ]
|
||||||
script:
|
script:
|
||||||
- echo "Make curl request to portainer"
|
- curl -X POST https://portainer.zakscode.com/api/webhooks/9fcc5dce-a884-4063-8666-34c0acf0aec5
|
||||||
environment:
|
environment:
|
||||||
name: Production
|
name: Production
|
||||||
url: https://zakscode.com
|
url: https://zakscode.com
|
||||||
|
@ -19,7 +19,7 @@ RUN if [ ! -d "dist" ]; then npm run build; fi
|
|||||||
|
|
||||||
# Use Nginx to serve
|
# Use Nginx to serve
|
||||||
FROM nginx:1.20-alpine
|
FROM nginx:1.20-alpine
|
||||||
COPY --from=build /app/dist /usr/share/nginx/html
|
COPY --from=build /app/dist/zakscode /usr/share/nginx/html
|
||||||
COPY docker/robots.txt /usr/share/nginx/html/robots.txt
|
COPY docker/robots.txt /usr/share/nginx/html/robots.txt
|
||||||
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
COPY docker/nginx.conf /etc/nginx/nginx.conf
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
Loading…
Reference in New Issue
Block a user