t3-code-android-nightly/.repos/alchemy-effect/benchmark/container/contexts/opencode/Dockerfile
Julius Marminge 108e01746c
Upgrade Effect and Alchemy betas (#4643)
Prepare Relay production infrastructure for the PlanetScale PS_20 HA topology, upgrade Effect and Alchemy to compatible betas, reconcile migration state, and preserve patched MCP session termination behavior.\n\nCo-authored-by: codex <codex@users.noreply.github.com>
2026-07-27 16:21:02 +02:00

21 lines
928 B
Docker

# The Cloudflare-container twin of `../microvm-opencode/Dockerfile`: the same
# opencode server started eagerly as the entrypoint. Cloudflare containers boot
# the image from scratch on each cold start (no memory snapshot), so this
# variant pays opencode's process startup inside every boot — the comparison
# the MicroVM snapshot variant is designed to isolate.
#
# Cloudflare builds containers for linux/amd64 and the AWS MicroVM base image
# is ARM64-only, so use plain Amazon Linux 2023 (same OS family, multi-arch).
# The base OS barely matters — opencode ships its own runtime.
FROM amazonlinux:2023
RUN dnf install -y unzip tar gzip git && dnf clean all
RUN curl -fsSL https://opencode.ai/install | bash \
&& ln -s /root/.opencode/bin/opencode /usr/local/bin/opencode
WORKDIR /workspace
ENV OPENCODE_SERVER_PASSWORD=bench
EXPOSE 8080
ENTRYPOINT ["opencode", "serve", "--hostname", "0.0.0.0", "--port", "8080"]