separate RUN for git-credential-env
MODIFY
Dockerfile
Dockerfile
@@ -5,6 +5,6 @@ RUN apk add --no-cache git
RUN mkdir /tmp/src
ADD . /tmp/src
-RUN pip3 install --no-cache-dir /tmp/src && \
- cp /tmp/src/docker/git-credential-env /usr/local/bin/git-credential-env && \
+RUN pip3 install --no-cache-dir /tmp/src
+RUN cp /tmp/src/docker/git-credential-env /usr/local/bin/git-credential-env && \
git config --system credential.helper env

separate RUN for git-credential-env