Skip to content

Instantly share code, notes, and snippets.

@inductor
Last active May 12, 2019 02:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save inductor/4cf6bcf1524d3145e212e775f1f55bd4 to your computer and use it in GitHub Desktop.
Save inductor/4cf6bcf1524d3145e212e775f1f55bd4 to your computer and use it in GitHub Desktop.
Secert
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 git@github.com: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