diff options
author | Marcel Amirault <mamirault@gitlab.com> | 2019-12-26 12:46:44 +0300 |
---|---|---|
committer | Achilleas Pipinellis <axil@gitlab.com> | 2019-12-26 12:46:44 +0300 |
commit | c466046bc12a35b9178c0a56e7860d50edf8fc48 (patch) | |
tree | 1e79a63f1f5947ab0ce1fb66af08a6a55b310c0a /dockerfiles | |
parent | e9695ea51cad5168c80e802db92479538141140e (diff) |
Docs build images
Diffstat (limited to 'dockerfiles')
-rw-r--r-- | dockerfiles/Dockerfile.gitlab-docs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/dockerfiles/Dockerfile.gitlab-docs b/dockerfiles/Dockerfile.gitlab-docs new file mode 100644 index 00000000..de927798 --- /dev/null +++ b/dockerfiles/Dockerfile.gitlab-docs @@ -0,0 +1,21 @@ +FROM ruby:2.6.3-alpine3.10 +MAINTAINER GitLab Documentation Team + +ENV YARN_VERSION="1.19.0" +ENV YARN_ARCHIVE_FILE="yarn-v${YARN_VERSION}.tar.gz" +ENV YARN_URL="https://yarnpkg.com/downloads/${YARN_VERSION}/${YARN_ARCHIVE_FILE}" +ENV PATH $PATH:/yarn-v${YARN_VERSION}/bin + +# Install dependencies +RUN apk --no-cache add -U openssl tar gzip xz gnupg bash nodejs \ + && mkdir -p /opt + +# Install Yarn +RUN wget "${YARN_URL}" \ + && wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --import \ + && wget "${YARN_URL}".asc \ + && gpg --verify "${YARN_ARCHIVE_FILE}".asc \ + && tar zvxf "${YARN_ARCHIVE_FILE}" + +# Update bundler +RUN gem install bundler -v "1.17.3" |