Reduce size of container image (#1777)

* Reduce size of container image
* Add deprecation message for automatic --mathjax
This commit is contained in:
Ryan Govostes
2021-12-22 14:54:29 -05:00
committed by GitHub
parent 93d3d10453
commit 7e379cfab1
3 changed files with 20 additions and 8 deletions
+16 -5
View File
@@ -1,9 +1,11 @@
FROM ruby:2.7
ENV DEBIAN_FRONTEND="noninteractive"
FROM ruby:2.7-alpine AS builder
RUN apt-get update && apt-get install -y \
libicu-dev \
cmake
RUN apk add \
build-base \
cmake \
git \
icu-dev \
openssl-dev
COPY Gemfile* /tmp/
COPY gollum.gemspec* /tmp/
@@ -23,6 +25,15 @@ 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