Add GitLab docs linting image to project, based on existing docs image for linting

This commit is contained in:
Evan Read 2018-09-17 08:50:10 +10:00
parent a561aa78a8
commit 80e889b8f0
3 changed files with 36 additions and 15 deletions

View file

@ -0,0 +1,17 @@
FROM ruby:2.5-alpine
MAINTAINER GitLab Documentation Team
WORKDIR /tmp
RUN apk update && apk upgrade && apk add --no-cache \
build-base \
bash \
grep
RUN wget https://gitlab.com/gitlab-com/gitlab-docs/-/archive/master/gitlab-docs-master.tar.bz2 \
&& tar xvjf gitlab-docs-master.tar.bz2 \
&& mv gitlab-docs-master gitlab-docs \
&& rm gitlab-docs-master.tar.bz2
RUN cd gitlab-docs \
&& bundle install --jobs 4