mirror of
https://github.com/hamster1963/nezha-dash.git
synced 2025-04-24 21:10:45 +08:00
fix(docker): use node as runtime
This commit is contained in:
parent
41114a3554
commit
fa0694dcf4
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user