modification Dockerfile pa11y, update pa11y@6.2.3

This commit is contained in:
Rudy Masson 2022-11-17 09:14:46 +01:00
parent 6d48542bfc
commit 4abd2c5fef
1 changed files with 11 additions and 4 deletions

View File

@ -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