Fix multi-stage container build

This commit is contained in:
2025-07-07 18:28:02 -04:00
parent 44057c8c92
commit 0f67381b8c

View File

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