Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # syntax=docker/dockerfile:experimental
- # example file
- FROM node:10.15.3-alpine
- RUN apk update && apk add openssh-client git
- # use the forwarded ssh key
- RUN --mount=type=ssh git clone <repo>
- DOCKER_BUILDKIT=1 docker build --ssh default .
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement