Skip to content

Instantly share code, notes, and snippets.

@one-more
Created May 5, 2020 11:41
Show Gist options
  • Save one-more/859c1a4233cc05ec34382b7827fc1b77 to your computer and use it in GitHub Desktop.
Save one-more/859c1a4233cc05ec34382b7827fc1b77 to your computer and use it in GitHub Desktop.
MakeFile:
export DOCKER_BUILDKIT=1
build_visual_container:
docker build --ssh id=$$HOME/.ssh/id_rsa --file VisualTestingDockerfile -t visual .
VisualTestingDockerfile:
RUN mkdir -p -m 0600 ~/.ssh && ssh-keyscan -p <?port> <host>.com >> ~/.ssh/known_hosts
RUN --mount=type=ssh,id=id --mount=type=ssh npm ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment