From 5c3ac4859a99a25feec5dff893b20ad9755a42f6 Mon Sep 17 00:00:00 2001 From: Eirik Stanghelle Morland Date: Wed, 22 May 2024 09:31:05 +0200 Subject: [PATCH] Make it possible to start chromedriver image with verbose log level (#5) --- Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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