Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions tools/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down