diff --git a/resources/com/cadoles/pa11y/Dockerfile b/resources/com/cadoles/pa11y/Dockerfile index e313b3b..4955f66 100644 --- a/resources/com/cadoles/pa11y/Dockerfile +++ b/resources/com/cadoles/pa11y/Dockerfile @@ -4,6 +4,8 @@ ARG HTTP_PROXY= ARG HTTPS_PROXY= ARG http_proxy= ARG https_proxy= +ARG GIT_USERNAME= +ARG GIT_PASSWORD= RUN apt-get update -y && apt-get install -y git @@ -14,7 +16,7 @@ RUN git clone https://github.com/subfuzion/envtpl /src \ -ldflags "-X main.AppVersionMetadata=$(date -u +%s)" \ -a -installsuffix cgo -o ./bin/envtpl ./cmd/envtpl/. -FROM alpine:3.10 +FROM alpine:3.16 ARG HTTP_PROXY= ARG HTTPS_PROXY= @@ -33,11 +35,16 @@ RUN apk add --no-cache \ nodejs \ npm \ chromium \ - bash + bash \ + curl \ + openssl \ + git -RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=1 npm install -g pa11y@^6.2.3 +RUN curl -k https://forge.cadoles.com/Cadoles/Jenkins/raw/branch/master/resources/com/cadoles/common/add-letsencrypt-ca.sh | bash -RUN adduser -D pa11y +RUN PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm install -g pa11y git+https://forge.cadoles.com/rmasson/junit-reporter-fork.git + +RUN adduser -D pa11y COPY run-audit.sh /usr/local/bin/run-audit RUN chmod +x /usr/local/bin/run-audit