From 5cbfc6956b931993b9e4a13f2e08ef6c8bb28d5f Mon Sep 17 00:00:00 2001 From: Dhruwang Date: Tue, 6 May 2025 14:00:20 +0530 Subject: [PATCH] fix --- apps/web/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/web/Dockerfile b/apps/web/Dockerfile index e4de7053df..0c89e755ae 100644 --- a/apps/web/Dockerfile +++ b/apps/web/Dockerfile @@ -84,11 +84,11 @@ RUN apk add --no-cache curl \ && addgroup -S nextjs \ && adduser -S -u 1001 -G nextjs nextjs -RUN go version && \ - # If multiple Go versions exist, ensure only 1.23.8+ remains - apk add --no-cache go>=1.23.8 && \ - # Remove any older versions if they exist - find / -name 'go1.23.7' -type d -exec rm -rf {} + +# In the runner stage +RUN apk update && \ + apk upgrade && \ + # This explicitly removes old package versions + rm -rf /var/cache/apk/* WORKDIR /home/nextjs