From 633f8cfa32c4270b97a588df1ad36e50c1877747 Mon Sep 17 00:00:00 2001 From: "Marlon (esolitos) Saglia" Date: Wed, 6 Dec 2023 16:49:44 +0100 Subject: [PATCH] add dockerdfile --- .github/workflows/build.yml | 4 ++-- Dockerfile | 11 ++++++----- 2 files changed, 8 insertions(+), 7 deletions(-) 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="]