| 1 | # Same base image as the effectful container (`oven/bun:latest`), but with NO |
| 2 | # Effect program bundled in — just a one-line Bun HTTP server. This isolates |
| 3 | # the Effect-runtime/bundle cost from the base-image pull/boot cost: any |
| 4 | # time-to-usable-service gap between this and the effectful variant is |
| 5 | # attributable to the bundled Effect runtime, not the image. |
| 6 | FROM oven/bun:latest |
| 7 | |
| 8 | RUN printf 'Bun.serve({ port: 8080, hostname: "0.0.0.0", fetch: () => new Response("ok") });\n' > /server.ts |
| 9 | |
| 10 | EXPOSE 8080 |
| 11 | CMD ["bun", "/server.ts"] |