gollum というGitをデータストアに使用するWikiをDocker(alpineベースのイメージ)で構築した際のDockerfileとGemfileをメモとして残しておきます(GitHubなりBitbucketに上げろやとか言われそう)
Dockerfile
FROM ruby:alpine
ENV DEBIAN_FRONTEND noninteractive
WORKDIR /root
ADD ./versions.txt /root/versions.txt
ADD Gemfile /root/Gemfile
RUN apk update
RUN apk add icu-dev build-base git
RUN apk add libxml2-dev libxslt-dev
RUN bundle install
RUN mkdir /root/wikidata
RUN git init /root/wikidata
EXPOSE 4567
ENTRYPOINT ["/usr/local/bundle/bin/gollum", "/root/wikidata", "--port", "4567"]
Gemfile
source 'https://rubygems.org'
ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] = 'YES'
gem 'gollum'
gem 'charlock_holmes'
gem 'redcarpet'
gem 'github-markdown'
gem 'org-ruby'