From 310f0562b1e070449ac099cf975ca47ac3c6b49d Mon Sep 17 00:00:00 2001 From: Madhu Kanoor Date: Tue, 17 Feb 2026 13:22:01 -0500 Subject: [PATCH] chore: fix Dockerfile to run on linux env The permissions on the key file were off and had to be updated for the images to be built properly --- tools/docker/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/docker/Dockerfile b/tools/docker/Dockerfile index 143363405..635ba774a 100644 --- a/tools/docker/Dockerfile +++ b/tools/docker/Dockerfile @@ -47,9 +47,13 @@ ENV POETRY_VERSION="2.*" \ PATH="/app/.local/bin:$PATH" \ HOME="/app" +USER "$USER_ID" + # Setup SSH for non-root user -RUN mkdir -p /app/.ssh && touch /app/.ssh/known_hosts && \ - ssh-keyscan github.com >> /app/.ssh/known_hosts +RUN mkdir -p /app/.ssh \ + && ssh-keyscan github.com >> /app/.ssh/known_hosts \ + && chmod 700 /app/.ssh \ + && chmod 644 /app/.ssh/known_hosts # Install poetry, create virtual environment RUN ${PYTHON_BIN} -m pip install --user "poetry==${POETRY_VERSION}" \