diff --git a/Makefile b/Makefile index f800ce004..50ba5d1c7 100644 --- a/Makefile +++ b/Makefile @@ -26,11 +26,19 @@ local: install-trivy: brew install trivy +trivy-f: + docker build -f ./frontend/Dockerfile -t retrospected/frontend:trivy ./frontend + trivy image retrospected/frontend:trivy --security-checks vuln + +trivy-b: + docker build -f ./backend/Dockerfile -t retrospected/backend:trivy ./backend + trivy image retrospected/backend:trivy --security-checks vuln + trivy: docker build -f ./backend/Dockerfile -t retrospected/backend:trivy ./backend docker build -f ./frontend/Dockerfile -t retrospected/frontend:trivy ./frontend - trivy image retrospected/backend:trivy - trivy image retrospected/frontend:trivy + trivy image retrospected/backend:trivy --security-checks vuln + trivy image retrospected/frontend:trivy --security-checks vuln translate: crowdin push sources diff --git a/backend/Dockerfile b/backend/Dockerfile index 1b0ff2541..0d6bdc53a 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,7 +1,7 @@ # This must be run with the Docker context set to the root folder of the repository # (the one with the yarn.lock file) -FROM node:16-alpine +FROM node:lts-alpine # App directory WORKDIR /usr/src/backend diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 577a4c1a9..cbd7b9beb 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -1,7 +1,7 @@ # This must be run with the Docker context set to the root folder of the repository # (the one with the yarn.lock file) -FROM --platform=$BUILDPLATFORM node:16-alpine as Node +FROM --platform=$BUILDPLATFORM node:lts-alpine as Node #FROM node:16-alpine as Node ENV NODE_ENV=production