diff --git a/Dockerfile b/Dockerfile index 6ce3fa9..22186b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,5 +4,10 @@ FROM zenika/alpine-chrome:${BASE_IMAGE_TAG} LABEL maintainer="eiriksm " 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