Update build_enhancements.md

This commit is contained in:
Anne Henmi 2018-11-27 19:30:28 -07:00 committed by GitHub
parent 4e4398d158
commit 07855dc667
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -173,19 +173,15 @@ Here is an example Dockerfile using SSH in the container:
```Dockerfile
# syntax=docker/dockerfile:experimental
FROM alpine
# Install ssh client and git
RUN apk add --no-cache openssh-client git
# Download public key for github.com
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan github.com >> ~/.ssh/known_hosts
# Clone private repository
RUN --mount=type=ssh git clone git@github.com:myorg/myproject.git myproject
```