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: 653ea2c5992f8eb320b6576b1c8276b42d57043b (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 ruby:2.5-alpine

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

# 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

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

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