iterate.com / cloud

git clone https://git.iterate.com/repos/cloud

cloud / internal-packages / installer / container / Dockerfilemain at aacbc74

# The installer's deploy image: the stack's source (the packages of core/ and what they depend on), installed
# and built, so a run clones nothing and installs nothing. Also the shim that @cloudflare/sandbox's
# Files talks to. Fill stack/ first with ./pack-stack.sh; build from this folder.
ARG SANDBOX_TOOLS_IMAGE=docker.io/cloudflare/sandbox:1.0.3
FROM ${SANDBOX_TOOLS_IMAGE} AS sandbox-tools

FROM node:26.13.1-trixie-slim
ENV DEBIAN_FRONTEND=noninteractive CI=1 DO_NOT_TRACK=1
RUN apt-get update -qq \
  && apt-get install -y -qq --no-install-recommends ca-certificates curl git jq procps \
  && rm -rf /var/lib/apt/lists/*
# Node 25 and later ship no corepack, so npm installs it.
RUN npm install -g --no-fund --no-audit corepack@0.36.0 \
  && corepack enable && corepack prepare pnpm@12.18.0 --activate && pnpm --version
COPY --from=sandbox-tools /usr/local/bin/sandbox-shim /usr/local/bin/sandbox-shim

COPY stack/ /stack/
WORKDIR /stack
# core/mind-worker's build lists core/configs with `git ls-files`: an index is enough, no commit.
RUN git init -q && git add -A
# Every package of core/ but the old platform, each with what it depends on: the stack file
# (core/alchemy/src/stack.ts) bundles the Workers' sources by path, so the alchemy package's own
# dependencies are not all that a deploy needs.
RUN pnpm install --frozen-lockfile --filter './core/*...' --filter '!os'
RUN pnpm --filter core-mind-worker build
COPY run.sh check-result.sh check-imports.mjs erase.mjs takeover.mjs /stack/

RUN mkdir -p /work /workspace
WORKDIR /work
CMD ["sleep", "infinity"]