Skip to content

Instantly share code, notes, and snippets.

@poad
Created March 27, 2016 03:03
Show Gist options
  • Save poad/bc26f9d96298112133f7 to your computer and use it in GitHub Desktop.
Save poad/bc26f9d96298112133f7 to your computer and use it in GitHub Desktop.
Gollum on Alphine on Docker ref: http://qiita.com/poad1010/items/0b5f10cffe7783591a28
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"]
source 'https://rubygems.org'
ENV['NOKOGIRI_USE_SYSTEM_LIBRARIES'] = 'YES'
gem 'gollum'
gem 'charlock_holmes'
gem 'redcarpet'
gem 'github-markdown'
gem 'org-ruby'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment