kubernetes-handbook/scripts/Dockerfile

35 lines
1.0 KiB
Docker
Raw Normal View History

FROM alpine:3.9
MAINTAINER Jimmy Song <rootsongjc@gmail.com>
2019-07-31 18:17:31 +08:00
RUN apk add --no-cache bash git curl jq tar libc6-compat g++ openssh
RUN apk add --no-cache nodejs-current-npm && npm install -g markdown-spellcheck webpack webpack-cli
RUN apk add --no-cache ruby ruby-dev ruby-rdoc && gem install mdl
# Install html-proofer
RUN echo 'gem: --no-document' >> /etc/gemrc
RUN apk add --no-cache --virtual build-dependencies \
build-base \
libcurl \
libxml2-dev \
libxslt-dev && \
apk add --no-cache --update build-base libffi-dev && \
gem install nokogiri -- --use-system-libraries && \
gem install ffi && \
gem install etc && \
gem install bigdecimal && \
gem install html-proofer --no-ri --no-rdoc && \
apk del build-dependencies && \
apk add --no-cache bash git libcurl libxml2 libxslt && \
rm -rf /var/cache/apk/* && \
rm -rf /root/.gem/* && \
rm -rf /usr/local/bundle/cache/*.gem && \
rm -rf /usr/lib/ruby/gems/*/cache/*.gem
# Install gitbook
RUN npm install gitbook-cli -g && \
2019-07-25 16:57:08 +08:00
gitbook -V