-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
21 lines (16 loc) · 912 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM alekzonder/puppeteer:1
# @see http://label-schema.org/rc1/
LABEL maintainer="Phase2 <outrigger@phase2technology.com>" \
org.label-schema.vendor="Phase2 <outrigger@phase2technology.com>" \
org.label-schema.name="Outrigger pa11y" \
org.label-schema.description="Docker image for pa11y, the CLI-based accessibility testing tool." \
org.label-schema.vcs-url="https://github.com/phase2/docker-pa11y" \
org.label-schema.docker.cmd="docker run -it --rm --cap-add=SYS_ADMIN outrigger/pa11y http://example.com" \
org.label-schema.docker.cmd.help="docker run --rm outrigger/pa11y" \
org.label-schema.docker.debug="docker exec -it $CONTAINER bash" \
org.label-schema.schema-version="1.0"
USER root
# Let's get pa11y v5 in here. Also adds http-server for running pa11y against staticly-generated HTML.
RUN yarn global add pa11y@5 pa11y-ci@2 http-server
USER pptruser
ENTRYPOINT ["dumb-init", "--"]