From 5e3302002820a1759714dd5360b5c8f6a34e0fe3 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Mon, 19 May 2025 18:56:40 +0000 Subject: [PATCH] fix: examples/with-docker/apps/api/Dockerfile to reduce vulnerabilities --- examples/with-docker/apps/api/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/with-docker/apps/api/Dockerfile b/examples/with-docker/apps/api/Dockerfile index 02b4e13d03836..8ee1d385e2e3d 100644 --- a/examples/with-docker/apps/api/Dockerfile +++ b/examples/with-docker/apps/api/Dockerfile @@ -1,4 +1,4 @@ -FROM node:alpine AS builder +FROM node:23.11.1-alpine3.21 AS builder RUN apk update # Set working directory WORKDIR /app @@ -7,7 +7,7 @@ COPY . . RUN turbo prune --scope=api --docker # Add lockfile and package.json's of isolated subworkspace -FROM node:alpine AS installer +FROM node:23.11.1-alpine3.21 AS installer RUN apk update WORKDIR /app @@ -22,7 +22,7 @@ COPY --from=builder /app/out/full/ . COPY turbo.json turbo.json RUN yarn turbo run build --filter=api... -FROM node:alpine AS runner +FROM node:23.11.1-alpine3.21 AS runner WORKDIR /app # Don't run production as root