From 1599197602f6dc3220fb42fa7ad6bbc0e7f91c34 Mon Sep 17 00:00:00 2001 From: Marcos Date: Sun, 22 Mar 2026 21:23:47 -0300 Subject: [PATCH] Update Dockerfile to use standard node:22-alpine and port 80 --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index a3cade2..e3022df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,14 @@ -# Estágio de Build -FROM bitnami/node:22 as build-stage -RUN apt-get update && apt-get upgrade -y && apt-get clean && rm -rf /var/lib/apt/lists/* +# Build stage +FROM node:22-alpine AS build WORKDIR /app COPY package*.json ./ RUN npm install --frozen-lockfile || npm install COPY . . RUN npm run build -# Estágio de Produção -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 8080 +# Production stage +FROM nginx:alpine +COPY --from=build /app/dist /usr/share/nginx/html +# Nginx default listen 80 +EXPOSE 80 CMD ["nginx", "-g", "daemon off;"]