Skip to content

Commit

Permalink
Add docs on entrypoint.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlorenc committed May 24, 2018
1 parent fe19975 commit 7776e26
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,23 @@ It improves the signal to noise of scanners (e.g. CVE) and reduces the burden of

These images are built using the [bazel](https://bazel.build) tool, but they can also be used through other Docker image build tooling.

### Entrypoints

Note that distroless images by default do not contain a shell.
That means the Dockerfile `ENTRYPOINT` command must be specified in `vector` form, to avoid the container runtime prefixing with a shell.

This works:

```
ENTRYPOINT ['myapp']
```

But this does not work:

```
ENTRYPOINT ['myapp']
```

### Docker

Docker multi-stage builds make using distroless images easy.
Expand Down

0 comments on commit 7776e26

Please sign in to comment.