Skip to content

Commit

Permalink
chore(readme): update custom image section
Browse files Browse the repository at this point in the history
  • Loading branch information
j-luong committed Jun 10, 2024
1 parent 6a41f07 commit 64f3a28
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,21 +194,7 @@ docker run --rm -it --env SNYK_TOKEN -v /var/run/docker.sock:/var/run/docker.soc

### Including Snyk in your own images

The easiest way of adding Snyk into your own custom images is to copy the binary from one of the above images. If you're using a `glibc` flavour of Linux (most of them) then add the following `COPY` line to your Dockerfile.

```dockerfile
FROM ubuntu

COPY --from=snyk/snyk:linux /usr/local/bin/snyk /usr/local/bin/snyk
```

If you're using a `musl` based distribution like Alpine then you need a different binary.

```dockerfile
FROM alpine

COPY --from=snyk/snyk:alpine /usr/local/bin/snyk /usr/local/bin/snyk
```
A guide on adding Snyk into your own custom images can be found in the Snyk Docs under [User-defined custom images for CLI](https://docs.snyk.io/snyk-scm-ide-and-ci-cd-integrations/snyk-ci-cd-integrations/user-defined-custom-images-for-cli).

#### A note on Go dep support

Expand Down

0 comments on commit 64f3a28

Please sign in to comment.