Skip to content

🛠 chore: Copy src/server to Runtime Image for Metrics Module#31

Merged
danny-avila merged 1 commit intomainfrom
fix/dockerfile-copy-server-src
Apr 17, 2026
Merged

🛠 chore: Copy src/server to Runtime Image for Metrics Module#31
danny-avila merged 1 commit intomainfrom
fix/dockerfile-copy-server-src

Conversation

@dustinhealy
Copy link
Copy Markdown
Contributor

Summary

Adds COPY --from=build /app/src/server src/server to the Dockerfile runtime stage.

server.ts imports ./src/server/metrics at runtime (Bun runs it directly, not compiled into dist/). Without the source file in the image, the container crash-loops with:

error: Cannot find module './src/server/metrics' from '/app/server.ts'

Test plan

  • docker build succeeds
  • Container starts without module resolution errors

server.ts imports ./src/server/metrics at runtime (not compiled into
dist/), so the source file must be present in the Docker image.
@dustinhealy dustinhealy changed the title fix: copy src/server to runtime image for metrics module 🛠 fix: Copy src/server to Runtime Image for Metrics Module Apr 17, 2026
@danny-avila danny-avila changed the title 🛠 fix: Copy src/server to Runtime Image for Metrics Module 🛠 chore: Copy src/server to Runtime Image for Metrics Module Apr 17, 2026
@danny-avila danny-avila merged commit f89df58 into main Apr 17, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants