Skip to content

Commit

Permalink
Change docker image for Node (#463)
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinejaussoin authored Feb 3, 2023
1 parent 389a8d2 commit 362bbb1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion frontend/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 362bbb1

Please sign in to comment.