From 09e8430619f422dd0ab74275bbae9b47247e1452 Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Fri, 30 Jan 2026 13:12:20 +0100 Subject: Use a simpler container --- Containerfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Containerfile b/Containerfile index 6a23b2a..0df0638 100644 --- a/Containerfile +++ b/Containerfile @@ -8,7 +8,9 @@ COPY . . RUN pnpm build # Production stage -FROM nginx:alpine -COPY --from=build /app/dist /usr/share/nginx/html -EXPOSE 80 -CMD ["nginx", "-g", "daemon off;"] +FROM node:22-alpine +WORKDIR /app +RUN npm install -g serve +COPY --from=build /app/dist ./dist +EXPOSE 3000 +CMD ["serve", "-s", "dist", "-l", "8991"] -- cgit