From 4a32bb7ed5180f4711ec4ed1e61e47cceff9caf8 Mon Sep 17 00:00:00 2001 From: Marcos Date: Sun, 22 Mar 2026 20:21:13 -0300 Subject: [PATCH] chore: Update Dockerfile base images, add system updates, and change exposed port to 8080. --- Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 38be2a6..a3cade2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Estágio de Build -FROM node:20-alpine as build-stage +FROM bitnami/node:22 as build-stage +RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/* WORKDIR /app COPY package*.json ./ RUN npm install --frozen-lockfile || npm install @@ -7,7 +8,8 @@ COPY . . RUN npm run build # Estágio de Produção -FROM nginx:stable-alpine as production-stage +FROM nginxinc/nginx-unprivileged:alpine as production-stage +RUN apk update && apk upgrade --no-cache COPY --from=build-stage /app/dist /usr/share/nginx/html -EXPOSE 80 +EXPOSE 8080 CMD ["nginx", "-g", "daemon off;"]