2019-02-26 13:50:07 +00:00
|
|
|
|
2021-01-22 08:02:04 +00:00
|
|
|
FROM alpine:3.13 as alpine
|
2019-02-26 13:50:07 +00:00
|
|
|
|
|
|
|
RUN apk --no-cache --no-progress add \
|
|
|
|
libcurl \
|
|
|
|
ruby \
|
|
|
|
ruby-bigdecimal \
|
|
|
|
ruby-etc \
|
|
|
|
ruby-ffi \
|
|
|
|
ruby-json \
|
2019-11-13 23:22:03 +00:00
|
|
|
ruby-nokogiri
|
|
|
|
RUN gem install html-proofer --version 3.13.0 --no-document -- --use-system-libraries
|
2019-02-26 13:50:07 +00:00
|
|
|
|
|
|
|
# After Ruby, some NodeJS YAY!
|
|
|
|
RUN apk --no-cache --no-progress add \
|
|
|
|
git \
|
|
|
|
nodejs \
|
2019-12-09 14:52:04 +00:00
|
|
|
npm
|
|
|
|
|
|
|
|
# To handle 'not get uid/gid'
|
|
|
|
RUN npm config set unsafe-perm true
|
|
|
|
|
|
|
|
RUN npm install --global \
|
2019-11-13 23:22:03 +00:00
|
|
|
markdownlint@0.17.2 \
|
|
|
|
markdownlint-cli@0.19.0
|
2019-02-26 13:50:07 +00:00
|
|
|
|
|
|
|
# Finally the shell tools we need for later
|
|
|
|
# tini helps to terminate properly all the parallelized tasks when sending CTRL-C
|
|
|
|
RUN apk --no-cache --no-progress add \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
tini
|
|
|
|
|
|
|
|
COPY ./scripts/verify.sh /verify.sh
|
|
|
|
COPY ./scripts/lint.sh /lint.sh
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
VOLUME ["/tmp","/app"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["/sbin/tini","-g","sh"]
|