diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8478571..0c3dee1 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -2,8 +2,8 @@ name: Build Docker Container on: push: - branches: - - main + branches: ['*'] + # - main env: REGISTRY: docker.io diff --git a/Dockerfile b/Dockerfile index c33052f..6ce3fa9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,8 @@ -FROM zenika/alpine-chrome:73 +ARG BASE_IMAGE_TAG=latest +FROM zenika/alpine-chrome:${BASE_IMAGE_TAG} + LABEL maintainer="eiriksm " -USER root -RUN mkdir -p mkdir /var/cache/apk && apk add --update chromium-chromedriver -ENTRYPOINT ["chromedriver", "--port=8643", "--url-base=wd/hub", "--headless", "--no-sandbox", "--whitelisted-ips="] -EXPOSE 8643 +LABEL description="Chrome driver for selenium testing" +EXPOSE 8643 +ENTRYPOINT ["chromedriver", "--allowed-ips=","--allowed-origins=*", "--port=8643", "--url-base=wd/hub", "--headless", "--no-sandbox", "--whitelisted-ips="]