From 0f67381b8ccca53d116e745947567037cf7abe46 Mon Sep 17 00:00:00 2001 From: Drew Malzahn Date: Mon, 7 Jul 2025 18:28:02 -0400 Subject: [PATCH] Fix multi-stage container build --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6079610..d7e0449 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,13 +24,12 @@ COPY . . # [optional] tests & build ENV NODE_ENV=production # RUN bun test -# RUN bun run build +RUN bun build --target bun --outdir build index.ts # copy production dependencies and source code into final image FROM base AS release COPY --from=install /temp/prod/node_modules node_modules COPY --from=prerelease /usr/src/app/build/index.js . -COPY --from=prerelease /usr/src/app/package.json . # run the app USER bun