Skip to content

Commit 4f53edd

Browse files
committed
fix: copy src/server to runtime image for metrics module
server.ts imports ./src/server/metrics at runtime (not compiled into dist/), so the source file must be present in the Docker image.
1 parent a3a17dd commit 4f53edd

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ ENV NODE_ENV=production
3030

3131
COPY --from=prod-deps /app/node_modules node_modules
3232
COPY --from=build /app/dist dist
33+
COPY --from=build /app/src/server src/server
3334
COPY server.ts package.json ./
3435

3536
RUN chown -R bun:bun /app

0 commit comments

Comments
 (0)