Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions deploy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# syntax=docker/dockerfile:1

FROM --platform=$BUILDPLATFORM oven/bun:slim AS build-base
FROM --platform=$BUILDPLATFORM node:22-slim AS build-base
WORKDIR /app

FROM build-base AS deps
COPY package.json ./
RUN bun install
RUN npm install --production=false

FROM deps AS build
COPY . .
Expand All @@ -24,7 +24,7 @@ ENV REDIS_URL="redis://localhost:6379"
# 标记为 CI 环境,跳过 instrumentation.ts 中的数据库连接
ENV CI=true

RUN bun run build
RUN npm run build

FROM node:22-slim AS runner
ENV NODE_ENV=production
Expand Down