gitlab-build-images/Dockerfile.gitlab-docs-lint
Achilleas Pipinellis 0faa7ddc5c
Update docs revision
We need to use a recent version of Nanoc, since it fixes a bug
causing the builds to fail.

https://gitlab.com/gitlab-org/gitlab-docs/issues/395
2019-09-05 09:26:05 +02:00

22 lines
659 B
Docker

FROM ruby:2.6.3-alpine3.10
MAINTAINER GitLab Documentation Team
WORKDIR /tmp
ENV GITLAB_DOCS_REVISION=1396a50b1eb9344be0403bb25e172e5408285dfe
RUN apk update && apk upgrade --no-cache && apk add --no-cache \
build-base \
bash \
grep \
yarn
RUN yarn global add markdownlint-cli@0.18.0 && yarn cache clean
RUN wget https://gitlab.com/gitlab-org/gitlab-docs/-/archive/$GITLAB_DOCS_REVISION/gitlab-docs-$GITLAB_DOCS_REVISION.tar.bz2 \
&& tar xvjf gitlab-docs-$GITLAB_DOCS_REVISION.tar.bz2 \
&& mv gitlab-docs-$GITLAB_DOCS_REVISION gitlab-docs \
&& rm gitlab-docs-$GITLAB_DOCS_REVISION.tar.bz2
RUN cd gitlab-docs \
&& bundle install --jobs 4