Skip to content

Commit afb4bfa

Browse files
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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ RUN npm install
1111
# Bundle app source
1212
COPY . /usr/src/app
1313

14-
ENTRYPOINT [ "bin/webpagetest" ]
14+
ENTRYPOINT [ "/usr/src/app/bin/webpagetest" ]

0 commit comments

Comments
 (0)