7e379cfab1
* Reduce size of container image * Add deprecation message for automatic --mathjax
41 lines
606 B
Docker
41 lines
606 B
Docker
FROM ruby:2.7-alpine AS builder
|
|
|
|
RUN apk add \
|
|
build-base \
|
|
cmake \
|
|
git \
|
|
icu-dev \
|
|
openssl-dev
|
|
|
|
COPY Gemfile* /tmp/
|
|
COPY gollum.gemspec* /tmp/
|
|
WORKDIR /tmp
|
|
RUN bundle install
|
|
|
|
RUN gem install \
|
|
asciidoctor \
|
|
creole \
|
|
wikicloth \
|
|
org-ruby \
|
|
RedCloth \
|
|
bibtex-ruby \
|
|
&& echo "gem-extra complete"
|
|
|
|
WORKDIR /app
|
|
COPY . /app
|
|
RUN bundle exec rake install
|
|
|
|
|
|
FROM ruby:2.7-alpine
|
|
|
|
COPY --from=builder /usr/local/bundle/ /usr/local/bundle/
|
|
|
|
RUN apk add \
|
|
bash \
|
|
git
|
|
|
|
VOLUME /wiki
|
|
WORKDIR /wiki
|
|
COPY docker-run.sh /docker-run.sh
|
|
ENTRYPOINT ["/docker-run.sh"]
|