Commit afb4bfa
authored
Dockerfile: make entry point absolute
The current entrypoint breaks if the workdir is changed.
Example:
```
docker run -w /mnt/foo -v $PWD/foo:/mnt/foo -it --rm firefoxtesteng/webpagetest-api
docker: Error response from daemon: oci runtime error: container_linux.go:265: starting container process caused "exec: \"bin/webpagetest\": stat bin/webpagetest: no such file or directory".
```
The following works as expected:
```
docker run --entrypoint /usr/src/app/bin/webpagetest -w /mnt/foo -v $PWD/foo:/mnt/foo -it --rm firefoxtesteng/webpagetest-api
```1 parent 4305331 commit afb4bfa
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
0 commit comments