From f5833e7c304a6e9cce50a7532e916adf24fa2ca5 Mon Sep 17 00:00:00 2001 From: carlos Date: Fri, 1 May 2026 20:11:20 +0000 Subject: [PATCH] Fix Dockerfile for Astro SSR --- Dockerfile | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 71fcd2e..91e5f2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,7 +5,12 @@ RUN npm install COPY . . RUN npm run build -FROM nginx:alpine -COPY --from=builder /app/dist /usr/share/nginx/html -COPY nginx.conf /etc/nginx/conf.d/default.conf -EXPOSE 80 +FROM node:20-alpine +WORKDIR /app +COPY --from=builder /app/dist ./dist +COPY --from=builder /app/node_modules ./node_modules +COPY --from=builder /app/package.json ./ +ENV HOST=0.0.0.0 +ENV PORT=4321 +EXPOSE 4321 +CMD ["node", "dist/server/entry.mjs"]