forked from mmistakes/minimal-mistakes
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
31 lines (24 loc) · 859 Bytes
/
Dockerfile
File metadata and controls
31 lines (24 loc) · 859 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
FROM jekyll/jekyll:latest
VOLUME /site
EXPOSE 4000
WORKDIR /site
RUN echo 'gem: --no-document' > /etc/gemrc
RUN gem install jekyll-watch && \
gem install jekyll-admin && \
gem install jekyll-paginate && \
gem install jekyll-sitemap && \
gem install jekyll-gist && \
gem install jekyll-feed && \
gem install jemoji && \
gem install jekyll-include-cache && \
gem install jekyll-algolia && \
gem install tzinfo && \
gem install json && \
gem install bigdecimal
#RUN gem install bundler
RUN mkdir -m0777 /_site
# TODO seal before ship to optimize storage
#RUN apk del gcc g++ binutils bison perl nodejs make curl && \
# rm -rf /var/cache/apk/*
CMD ["(set -x; bundle update && bundle install && bundle exec jekyll serve -d /_site --watch --drafts --force_polling -H 0.0.0.0 -P 4000;)"]
ENTRYPOINT ["sh", "-c"]