From a4450ad7e5c76e67d59580f90a08fc30440dd641 Mon Sep 17 00:00:00 2001 From: Marcos Date: Sun, 22 Mar 2026 21:44:46 -0300 Subject: [PATCH] Update Dockerfile with apk upgrade and vulnerabilities fixes --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index e3022df..fbd8791 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,9 @@ # Build stage FROM node:22-alpine AS build + +# Update packages for security +RUN apk update && apk upgrade --no-cache + WORKDIR /app COPY package*.json ./ RUN npm install --frozen-lockfile || npm install @@ -8,6 +12,10 @@ RUN npm run build # Production stage FROM nginx:alpine + +# Update packages for security +RUN apk update && apk upgrade --no-cache + COPY --from=build /app/dist /usr/share/nginx/html # Nginx default listen 80 EXPOSE 80