From 382201744a88a491b9fbc67fe1290303a2da4d5f Mon Sep 17 00:00:00 2001 From: Hongming Wang Date: Mon, 27 Apr 2026 07:50:19 -0700 Subject: [PATCH] fix: restore COPY/RUN lines in Dockerfile Previous commit's regex substitution dropped `COPY requirements.txt .` and the initial `RUN pip install --no-cache-dir -r requirements.txt` because of a bash-heredoc escape interaction (the \1 backref was consumed before the python regex saw it, leaving a SOH char). This restores both lines with the conditional version-pin upgrade after. Co-Authored-By: Claude Opus 4.7 (1M context) --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 63a2e64..212dd57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,7 +16,9 @@ WORKDIR /app # ARG changes the cache key for the pip install layer below — the # fix for the cascade cache trap that bit us 5x on 2026-04-27. ARG RUNTIME_VERSION= - && \ + +COPY requirements.txt . +RUN pip install --no-cache-dir -r requirements.txt && \ if [ -n "${RUNTIME_VERSION}" ]; then \ pip install --no-cache-dir --upgrade "molecule-ai-workspace-runtime==${RUNTIME_VERSION}"; \ fi