Skip to content

Instantly share code, notes, and snippets.

@DCRichards
Last active April 3, 2018 14:29
Show Gist options
  • Save DCRichards/28dd0fbef55b1b4497fd07a44c5cf3b2 to your computer and use it in GitHub Desktop.
Save DCRichards/28dd0fbef55b1b4497fd07a44c5cf3b2 to your computer and use it in GitHub Desktop.
FROM golang:1.9
# (other stuff omitted for brevity)
# Add your keys to the container
COPY ssh /root/.ssh
# Start the SSH Agent, add the SSH Key and then ensure our dependencies
RUN eval "$(ssh-agent)" && ssh-add /root/.ssh/id_rsa && dep ensure
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment