Reversed to node

This commit is contained in:
Kizuren 2025-09-02 18:57:09 +02:00
parent edc5386c6d
commit e39b4f4d58
7 changed files with 17543 additions and 4063 deletions

View file

@ -1,23 +1,15 @@
FROM oven/bun:1 AS builder
FROM node:22-alpine AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY package*.json ./
RUN npm ci
COPY . .
RUN npm run build
RUN bun run build
FROM oven/bun:1-slim AS runner
FROM node:22-alpine
WORKDIR /app
COPY --from=build /app/.output /app/.output
ENV NODE_ENV=production
ENV PORT=3000
COPY --from=builder /app/.output /app/.output
COPY --from=builder /app/package.json ./
COPY --from=builder /app/bun.lock ./
RUN bun install
EXPOSE 3000
CMD ["bun", ".output/server/index.mjs"]
CMD ["node", ".output/server/index.mjs"]