From 1772bfdb927b526cca89237b0b8b0a6b230a6925 Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Fri, 6 Jun 2025 10:26:31 +0000 Subject: [PATCH 1/2] Fix wrong shell and missing file in Dockerfile for uv --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index a5eae469..da7c0dee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,6 @@ # Use the official Python image for the base image. FROM python:3.11-slim +SHELL ["/bin/bash", "-c"] # Set environment variables to make Python print directly to the terminal and avoid .pyc files. ENV PYTHONUNBUFFERED 1 @@ -26,12 +27,13 @@ RUN curl -LsSf https://astral.sh/uv/install.sh | sh # Set the working directory WORKDIR /workspaces/serena -# Copy the pyproject.toml file into the image. +# Copy required files into the image COPY pyproject.toml /workspaces/serena/ +COPY README.md /workspaces/serena/ # Create virtual environment and install dependencies RUN uv venv -RUN source .venv/bin/activate +RUN . .venv/bin/activate RUN uv pip install --all-extras -r pyproject.toml -e . ENV PATH="/workspaces/serena/.venv/bin:${PATH}" From 3ba52bdfc1373042bfd55ece094b9eeac61e618a Mon Sep 17 00:00:00 2001 From: Miguel de Benito Delgado Date: Fri, 6 Jun 2025 10:30:16 +0000 Subject: [PATCH 2/2] Add missing ssh client to docker image --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index da7c0dee..45218679 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ build-essential \ git \ + ssh \ && rm -rf /var/lib/apt/lists/* # Install pipx.