添加 Dockerfile

This commit is contained in:
2025-11-07 00:42:46 +08:00
parent ba6375b70d
commit 25374eee70
2 changed files with 34 additions and 0 deletions

11
Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM oven/bun:1 AS base
WORKDIR /app
FROM base AS build
COPY . .
RUN bun install --frozen-lockfile && bun run build
FROM base AS product
COPY --from=build /app/build /app
ENTRYPOINT [ "bun", "run", "index.js" ]