Advertisement
Guest User

Untitled

a guest
Jun 16th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. # syntax=docker/dockerfile:experimental
  2. # example file
  3. FROM node:10.15.3-alpine
  4.  
  5. RUN apk update && apk add openssh-client git
  6.  
  7. # use the forwarded ssh key
  8. RUN --mount=type=ssh git clone <repo>
  9.  
  10. DOCKER_BUILDKIT=1 docker build --ssh default .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement