From 362bbb14b7627dcac5b09d33c6ca1475e3ac35ac Mon Sep 17 00:00:00 2001 From: Antoine Jaussoin Date: Fri, 3 Feb 2023 16:45:57 +0000 Subject: [PATCH] Change docker image for Node (#463) --- Makefile | 12 ++++++++++-- backend/Dockerfile | 2 +- frontend/Dockerfile | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) 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