LoginSignup
5
5

More than 5 years have passed since last update.

Gollum on Alphine on Docker

Posted at

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'
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5