From fa0694dcf4c0bbbd9b15db56191ebfe0dd4a9ebb Mon Sep 17 00:00:00 2001 From: hamster1963 <1410514192@qq.com> Date: Sat, 23 Nov 2024 14:02:18 +0800 Subject: [PATCH] fix(docker): use node as runtime --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e739a9a..45b4948 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY . . RUN bun run build # Stage 3: Production image -FROM oven/bun:1-alpine AS runner +FROM node:23-alpine AS runner WORKDIR /app ENV NODE_ENV=production COPY --from=builder /app/public ./public @@ -22,4 +22,4 @@ COPY --from=builder /app/.next/standalone ./ COPY --from=builder /app/.next/static ./.next/static EXPOSE 3000 -CMD ["bun", "run", "server.js"] +CMD ["node", "run", "server.js"]