Last active
May 12, 2019 02:27
-
-
Save inductor/4cf6bcf1524d3145e212e775f1f55bd4 to your computer and use it in GitHub Desktop.
Secert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
COPY id_ssh_rsa id_ssh_rsa | |
RUN apk --update --no-cache add git | |
RUN git -c core.sshCommand="ssh -i ./id_ssh_rsa -F /dev/null" clone [email protected]:hoge/fuga.git | |
RUN rm -f id_ssh_rsa | |
# 最後に消してもDockerイメージのレイヤーには残ってしまうので意味がない |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment