forked from wet-boew/GCWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 949 Bytes
/
Dockerfile
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
# Base on: Starefossen/docker-github-pages
FROM starefossen/ruby-node:2-6-alpine
ENV GITHUB_GEM_VERSION 227
ENV JSON_GEM_VERSION 2.6.2
RUN apk --update add --virtual build_deps \
build-base ruby-dev libc-dev linux-headers \
&& gem update --system \
&& gem install --verbose --no-document \
json:${JSON_GEM_VERSION} \
github-pages \
jekyll-github-metadata \
minitest \
&& gem install rake html-proofer \
&& apk del build_deps \
&& apk add git \
&& mkdir -p /usr/src/app \
&& rm -rf /usr/lib/ruby/gems/*/cache/*.gem
# github-pages:${GITHUB_GEM_VERSION} \
WORKDIR /usr/src/app
EXPOSE 4000 80
CMD rm -f /usr/src/app/Gemfile.lock /usr/src/app/.jekyll-metadata && cp -rf /usr/src/app/_includes/* /usr/src/app/~jekyll-dist/_includes/ && cp -rf /usr/src/app/_layouts/* /usr/src/app/~jekyll-dist/_layouts/ && jekyll serve -d /_site --watch --force_polling -H 0.0.0.0 -P 4000 --config _config.yml,_localJekyll.yml