Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Dockerfile.gitlab-docs-lint « dockerfiles - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a73e2dd047955ce972a788a00952ed600e30b7f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM ruby:2.5.3-alpine3.8
MAINTAINER GitLab Documentation Team

WORKDIR /tmp

RUN apk update && apk upgrade && apk add --no-cache \
  build-base \
  bash \
  grep \
  yarn

RUN yarn global add markdownlint-cli && yarn cache clean

RUN wget https://gitlab.com/gitlab-com/gitlab-docs/-/archive/$CI_COMMIT_REF_NAME/gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 \
  && tar xvjf gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2 \
  && mv gitlab-docs-$CI_COMMIT_REF_NAME gitlab-docs \
  && rm gitlab-docs-$CI_COMMIT_REF_NAME.tar.bz2

RUN cd gitlab-docs \
  && bundle install --jobs 4