Switch to standard nginx for port 80 compatibility

This commit is contained in:
Marcos
2026-03-22 20:41:42 -03:00
parent c60a79b0c8
commit 304504b758

View File

@@ -2,12 +2,13 @@
FROM node:22-alpine AS build
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --frozen-lockfile
COPY . .
RUN npm run build
# Production stage
FROM nginxinc/nginx-unprivileged:alpine
FROM nginx:alpine
COPY --from=build /app/dist /usr/share/nginx/html
EXPOSE 8080
# Nginx default listens on 80
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]