From 9a33be1f25978350bf2aca702d14c34ab691d72c Mon Sep 17 00:00:00 2001 From: Dmytro Stanchiev Date: Fri, 3 Oct 2025 09:02:39 -0400 Subject: [PATCH] fix: add target to a bun build command --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 315c900..83bda60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,7 +15,7 @@ COPY src ./src COPY tsconfig.json ./ # Build the application for production -RUN bun build ./src/index.ts --outdir ./dist --minify +RUN bun build ./src/index.ts --outdir ./dist --minify --target=bun # Multi-stage build - runtime stage FROM oven/bun:latest AS runtime @@ -29,4 +29,4 @@ COPY --from=base /app/dist/ ./ EXPOSE 3000 # Start the application -CMD ["bun", "index.js"] \ No newline at end of file +CMD ["bun", "index.js"]