From 5027fd326e8aa412708f071c921c04cf3449a0f2 Mon Sep 17 00:00:00 2001 From: Jiadong Bai Date: Thu, 2 Oct 2025 16:10:24 -0700 Subject: [PATCH] fix: resolve exec format error in pylsp Docker container MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Explicitly install bash in the container as python:3.10-slim may not include it - Use /usr/bin/env bash in ENTRYPOINT to ensure proper script execution - Fixes "exec /usr/src/app/run_pylsp.sh: exec format error" 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- deployment/pylsp/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/pylsp/Dockerfile b/deployment/pylsp/Dockerfile index c2044369c6f..f02762b2dfb 100644 --- a/deployment/pylsp/Dockerfile +++ b/deployment/pylsp/Dockerfile @@ -25,6 +25,7 @@ WORKDIR /usr/src/app RUN pip install python-lsp-server[all]==1.5.0 python-lsp-server[websockets] pylint==2.15.10 RUN apt update RUN apt install -y htop +RUN apt update && apt install -y --no-install-recommends bash htop # Copy the bash script into the container COPY run_pylsp.sh /usr/src/app/run_pylsp.sh @@ -33,7 +34,7 @@ COPY run_pylsp.sh /usr/src/app/run_pylsp.sh RUN chmod +x /usr/src/app/run_pylsp.sh # Set the entrypoint to the script -ENTRYPOINT ["/usr/src/app/run_pylsp.sh"] +ENTRYPOINT ["/usr/bin/env", "bash", "/usr/src/app/run_pylsp.sh"] # Run pylsp on container startup # ENTRYPOINT ["pylsp", "--ws", "--port", "3000", "--verbose", "--check-parent-process"]