Skip to content

Commit

Permalink
fix: backend/Dockerfile to reduce vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
snyk-bot committed Oct 15, 2023
1 parent 98974fc commit 777ba9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Create image based on the official Node 8 image from the dockerhub
FROM node:20.5.1-alpine3.17 AS builder
FROM node:20.8-alpine3.17 AS builder
# Change directory so that our commands run inside this new directory
WORKDIR /usr/src/app
# Copy files
Expand All @@ -10,7 +10,7 @@ RUN npm ci --legacy-peer-deps
RUN npm run grunt ts:default

# In order to clean from building, we restarted from the original image (multi-stage build)
FROM node:20.5.1-alpine3.17 AS runner
FROM node:20.8-alpine3.17 AS runner
# Upgrade image packages
RUN apk update && apk upgrade --no-cache
# Change directory so that our commands run inside this new directory
Expand Down

0 comments on commit 777ba9e

Please sign in to comment.