**Try** to fix docker compose?

This commit is contained in:
吳元皓 2025-05-15 11:42:14 +08:00
parent ef163b6174
commit 05e5b722fb

View File

@ -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"]