| 1 | import * as Cloudflare from "alchemy/Cloudflare"; |
| 2 | |
| 3 | /** |
| 4 | * Non-Effect ("remote image") container: Alchemy pulls a pre-built public image |
| 5 | * and re-pushes it — no Effect program is bundled and no runtime is injected. |
| 6 | * `mendhak/http-https-echo` serves on port 8080 and writes to its inherited |
| 7 | * stdout fd directly, so it boots cleanly inside Cloudflare's container sandbox. |
| 8 | */ |
| 9 | export class RemoteContainer extends Cloudflare.Container<RemoteContainer>()( |
| 10 | "BenchRemoteContainer", |
| 11 | { |
| 12 | image: "mendhak/http-https-echo:latest", |
| 13 | maxInstances: 100, |
| 14 | instanceType: "lite", |
| 15 | instances: 0, |
| 16 | }, |
| 17 | ) {} |