Skip to content

Commit

Permalink
Make it possible to start chromedriver image with verbose log level (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
eiriksm committed May 22, 2024
1 parent 247669e commit 5c3ac48
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@ FROM zenika/alpine-chrome:${BASE_IMAGE_TAG}
LABEL maintainer="eiriksm <[email protected]>"
LABEL description="Chrome driver for selenium testing"

ENV LOG_LEVEL=WARNING

EXPOSE 8643
ENTRYPOINT ["chromedriver", "--allowed-ips=","--allowed-origins=*", "--port=8643", "--url-base=wd/hub", "--headless", "--no-sandbox", "--whitelisted-ips="]

# Use the "shell form" for ENTRYPOINT so we can do variable expansion:
# https://docs.docker.com/reference/dockerfile/#shell-form-entrypoint-example
ENTRYPOINT chromedriver --allowed-ips= --allowed-origins=* --port=8643 --url-base=wd/hub --headless --no-sandbox --whitelisted-ips= --log-level=$LOG_LEVEL

0 comments on commit 5c3ac48

Please sign in to comment.