forked from wet-boew/GCWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
25 lines (21 loc) · 780 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
ARG RUBY_VERSION=3.3.0
FROM ruby:$RUBY_VERSION
RUN apt-get update \
&& apt-get install -y \
git \
locales \
make \
nodejs \
&& gem update --system \
&& gem install --verbose --no-document \
json \
github-pages \
jekyll-github-metadata \
minitest \
&& gem install rake html-proofer \
&& gem install webrick \
&& mkdir -p /usr/src/app \
&& rm -rf /usr/lib/ruby/gems/*/cache/*.gem
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