I have this Dockerfile snippet:
FROM alpine/git:v2.26.2 as intermediate ARG SSH_PRIVATE_KEY RUN mkdir /root/.ssh/ && chmod 755 /root/.ssh RUN echo &q