fix(docker): stop copying legacy deepseek binaries that no longer exist
The release docker job failed on 'cp: cannot stat .../release/deepseek'. Legacy entrypoints survive as symlinks to the codewhale binaries.
This commit is contained in:
+6
-6
@@ -62,9 +62,7 @@ RUN --mount=type=cache,id=codewhale-target-${TARGETARCH},target=/build/target,sh
|
|||||||
-p codewhale-cli -p codewhale-tui \
|
-p codewhale-cli -p codewhale-tui \
|
||||||
&& mkdir -p /out \
|
&& mkdir -p /out \
|
||||||
&& cp target/$(cat /rust-target)/release/codewhale /out/ \
|
&& cp target/$(cat /rust-target)/release/codewhale /out/ \
|
||||||
&& cp target/$(cat /rust-target)/release/codewhale-tui /out/ \
|
&& cp target/$(cat /rust-target)/release/codewhale-tui /out/
|
||||||
&& cp target/$(cat /rust-target)/release/deepseek /out/ \
|
|
||||||
&& cp target/$(cat /rust-target)/release/deepseek-tui /out/
|
|
||||||
|
|
||||||
# ── Stage 2: Runtime ──────────────────────────────────────────────────
|
# ── Stage 2: Runtime ──────────────────────────────────────────────────
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
@@ -78,14 +76,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
RUN groupadd --gid 1000 codewhale \
|
RUN groupadd --gid 1000 codewhale \
|
||||||
&& useradd --create-home --shell /bin/bash --uid 1000 --gid 1000 codewhale \
|
&& useradd --create-home --shell /bin/bash --uid 1000 --gid 1000 codewhale \
|
||||||
&& install -d -m 0700 -o codewhale -g codewhale /home/codewhale/.codewhale \
|
&& install -d -m 0700 -o codewhale -g codewhale /home/codewhale/.codewhale \
|
||||||
&& install -d -m 0700 -o codewhale -g codewhale /home/codewhale/.deepseek
|
&& install -d -m 0700 -o codewhale -g codewhale /home/codewhale/.deepseek \
|
||||||
|
# Legacy entrypoints from the deepseek-tui era; the real binaries are
|
||||||
|
# copied in below (symlinks may dangle until then).
|
||||||
|
&& ln -s /usr/local/bin/codewhale /usr/local/bin/deepseek \
|
||||||
|
&& ln -s /usr/local/bin/codewhale-tui /usr/local/bin/deepseek-tui
|
||||||
USER codewhale
|
USER codewhale
|
||||||
WORKDIR /home/codewhale
|
WORKDIR /home/codewhale
|
||||||
|
|
||||||
COPY --from=builder --chown=codewhale:codewhale /out/codewhale /usr/local/bin/codewhale
|
COPY --from=builder --chown=codewhale:codewhale /out/codewhale /usr/local/bin/codewhale
|
||||||
COPY --from=builder --chown=codewhale:codewhale /out/codewhale-tui /usr/local/bin/codewhale-tui
|
COPY --from=builder --chown=codewhale:codewhale /out/codewhale-tui /usr/local/bin/codewhale-tui
|
||||||
COPY --from=builder --chown=codewhale:codewhale /out/deepseek /usr/local/bin/deepseek
|
|
||||||
COPY --from=builder --chown=codewhale:codewhale /out/deepseek-tui /usr/local/bin/deepseek-tui
|
|
||||||
|
|
||||||
# The dispatcher expects to find its companion binary next to it.
|
# The dispatcher expects to find its companion binary next to it.
|
||||||
# Both are in /usr/local/bin — no further path setup needed.
|
# Both are in /usr/local/bin — no further path setup needed.
|
||||||
|
|||||||
Reference in New Issue
Block a user