| 1 | # Node baseline MicroVM — the dumbest possible node HTTP server, built the EXACT |
| 2 | # same way alchemy's effectful node image is built (`dnf install -y nodejs` on |
| 3 | # the MicroVM base — the runtime the Lambda VMs already ship). The only |
| 4 | # difference from the effectful node `EffectfulNode` image is the server code: a |
| 5 | # raw `http.createServer` with no Effect runtime, no alchemy bootstrap, no RPC. |
| 6 | FROM public.ecr.aws/lambda/microvms:al2023-minimal |
| 7 | |
| 8 | RUN dnf install -y nodejs && dnf clean all |
| 9 | |
| 10 | WORKDIR /app |
| 11 | COPY server.js . |
| 12 | |
| 13 | EXPOSE 8080 |
| 14 | ENV PORT=8080 |
| 15 | ENTRYPOINT ["node", "/app/server.js"] |