aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Containerfile10
1 files 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"]