File tree Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Expand file tree Collapse file tree 3 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 1- FROM ruby:2.6
1+ FROM ruby:2.6.9
22
3- RUN gem install bundler jekyll
3+ RUN gem install rouge -v3.30.0
4+ RUN gem install bundler:2.3.10 jekyll
45
56WORKDIR /srv/jekyll
67
78COPY Gemfile .
89COPY Gemfile.lock .
910
11+ RUN echo -n "bundle version: " && bundle --version
12+ RUN chmod u+s /bin/chown
1013RUN bundle install
11-
Original file line number Diff line number Diff line change @@ -19,10 +19,14 @@ For more details, read on.
1919
2020To build and view site with Docker:
2121
22- docker-compose up
22+ env UID="$(id -u)" GID="$(id -g)" docker-compose up
2323
2424It will incrementally build and serve site at ` http://localhost:4000 ` .
2525
26+ In case the Dockerfile changed, re-build it with:
27+
28+ env UID="$(id -u)" GID="$(id -g)" docker-compose up --build
29+
2630For more details on the Docker option, see [ this issue] ( https://github.com/scala/docs.scala-lang/issues/1286 ) .
2731
2832## Contributing ##
Original file line number Diff line number Diff line change 1- version : " 2"
1+ version : ' 2'
2+
23services :
3- scala-lang :
4+ jekyll :
5+ user : " ${UID}:${GID}"
46 build : .
5- command : bundle exec jekyll serve --incremental --host=0.0.0.0
7+ command : sh -c "chown $UID / && bundle exec jekyll serve --incremental --host=0.0.0.0 "
68 ports :
7- - 4000:4000
9+ - ' 4000:4000'
810 volumes :
911 - .:/srv/jekyll
You can’t perform that action at this time.
0 commit comments