Project-2 baseline
This commit is contained in:
@@ -10,6 +10,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ENV NODE_OPTIONS=--openssl-legacy-provider
|
||||
|
||||
# --- Python >=3.10 for the reduced-toolset agent's str_replace_editor ---
|
||||
# str_replace_editor (shebang `python3`) uses dataclass(kw_only=True) → it requires Python
|
||||
# >=3.10. The era-matched base ships Debian's older system python (ruby:3.2.1/3.1.2 → 3.9,
|
||||
@@ -94,15 +96,16 @@ RUN git init && \
|
||||
git add -A && \
|
||||
git commit -m "initial" --quiet
|
||||
|
||||
# Install JS deps via npm (no yarn.lock committed).
|
||||
RUN cd chrome/recorder && npm install --no-audit --no-fund
|
||||
# Install JS deps from the committed yarn.lock; fall back to a plain install if it drifted.
|
||||
RUN (cd chrome/recorder && yarn install --frozen-lockfile --network-timeout 600000) \
|
||||
|| (cd chrome/recorder && yarn install --network-timeout 600000)
|
||||
|
||||
# Fold the env-prep above into the baseline commit: tests/test.sh captures the agent's
|
||||
# work as the diff against it, so uncommitted setup edits ship as the agent's own.
|
||||
RUN git add -A && git commit --amend --no-edit --quiet
|
||||
|
||||
# Fail loudly if any load-bearing tool is missing.
|
||||
RUN for t in node npm claude; do \
|
||||
RUN for t in node yarn claude; do \
|
||||
command -v "$t" >/dev/null 2>&1 || { echo "FATAL: required tool '$t' missing from image" >&2; exit 1; }; \
|
||||
done; \
|
||||
echo "toolchain OK"
|
||||
|
||||
Reference in New Issue
Block a user