smaller docker image

This commit is contained in:
2026-08-30 22:24:55 +00:00
parent 0e8c3c70b8
commit fe225f8a3d
2 changed files with 4 additions and 14 deletions

View File

@@ -1,23 +1,13 @@
FROM oven/bun AS builder
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install
COPY . .
RUN bun run build
FROM oven/bun
WORKDIR /app
COPY --from=builder /app ./
COPY --from=builder /app/build ./build
EXPOSE 3000
ENV NODE_ENV=production
CMD ["bun", "build/index.js"]
CMD ["bun", "build/index.js"]