From 05e5b722fb55182c6a0f052c5c0ef6d9099df7ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B3=E5=85=83=E7=9A=93?= Date: Thu, 15 May 2025 11:42:14 +0800 Subject: [PATCH] **Try** to fix docker compose? --- Dockerfile | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index d819f8f..0b32246 100755 --- a/Dockerfile +++ b/Dockerfile @@ -3,34 +3,34 @@ FROM oven/bun:latest as builder WORKDIR /app - + # Copy package files COPY package.json ./ COPY bun.lock* package-lock.json* yarn.lock* ./ - + # Install dependencies RUN bun pm untrusted RUN bun install - + # Copy source files COPY . . - + # Build the application RUN bun run build - + # Production stage FROM oven/bun:latest - + WORKDIR /app - + # Copy package files for production COPY --from=builder /app/package.json ./ - + # Copy build outputs from builder COPY --from=builder /app/.output /app/.output - - RUN bun install --production - + + RUN bun install + EXPOSE 3000 - + CMD ["bun", "run", "start"]