mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-09 18:12:55 +01:00
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
22 lines
659 B
Docker
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
|