fix: install the sprite CLI onto PATH in the server image
commit
3598c77fix: install the sprite CLI onto PATH in the server image
The sprites.dev installer drops the binary in $HOME/.local/bin and
never edits PATH, so the post-receive checks hook could not spawn it and
failed with could not run the sprite CLI (is it installed?). Point the
installer at /usr/local/bin, which is already on PATH.
Assisted-by: Claude:claude-opus-4-8
Reviews
No reviews of this commit yet — record a verdict below.
Start a review
crates/git-ents-server/Dockerfile
@@ -22,7 +22,11 @@
&& apt-get install -y --no-install-recommends git ca-certificates openssh-client curl \
&& rm -rf /var/lib/apt/lists/*
# The sprite CLI runs the checks in a Sprite; it reads SPRITES_TOKEN from the env.
-RUN curl -fsSL https://sprites.dev/install.sh | bash
+# The installer drops the binary in $HOME/.local/bin and never touches PATH, so
+# point it at /usr/local/bin (already on PATH) where the server can spawn it.
+RUN curl -fsSL https://sprites.dev/install.sh \
+ | env SPRITE_INSTALL_PREFERRED_DIRS=/usr/local/bin \
+ SPRITE_INSTALL_DEFAULT_BIN_DIR=/usr/local/bin bash
COPY --from=builder /app/target/release/git-ents-server /usr/local/bin
COPY hooks /app/hooks
RUN chmod +x /app/hooks/pre-receive /app/hooks/post-receive