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

Dockerfile.bootstrap « dockerfiles - gitlab.com/gitlab-org/gitlab-docs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2de4905e24b78fd2c9f986fb863ba4a2a8fb4d19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#
# This is the Nanoc boostrap Dockerfile which builds an image that contains
# all Nanoc's runtime dependencies and gems.
#

FROM registry.gitlab.com/gitlab-org/gitlab-build-images:gitlab-docs

# Install packages needed at build and run time
RUN apk add --no-cache --virtual build-deps \
  build-base \
  ruby-dev \
  libxslt-dev

# Install packages needed at build and run time
RUN apk add --no-cache libxslt libcurl openssl git grep bash pngquant nodejs

# Do not install rdoc to save some space
RUN echo 'gem: --no-document' >> /etc/gemrc

# Copy scripts used for static HTML post-processing
COPY scripts /scripts/

# Copy only Gemfile and Gemfile.lock
COPY /Gemfile* /source/
WORKDIR /source

# Install gems
RUN NOKOGIRI_USE_SYSTEM_LIBRARIES=1 bundle install --jobs 4

CMD echo "Nothing to do here. This is the bootstrap image that contains all dependencies to build the docs site."