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
2
2
3
- RUN gem install bundler jekyll
3
+ RUN gem install rouge -v3.30.0
4
+ RUN gem install bundler:2.3.10 jekyll
4
5
5
6
WORKDIR /srv/jekyll
6
7
7
8
COPY Gemfile .
8
9
COPY Gemfile.lock .
9
10
11
+ RUN echo -n "bundle version: " && bundle --version
12
+ RUN chmod u+s /bin/chown
10
13
RUN bundle install
11
-
Original file line number Diff line number Diff line change @@ -19,10 +19,14 @@ For more details, read on.
19
19
20
20
To build and view site with Docker:
21
21
22
- docker-compose up
22
+ env UID="$(id -u)" GID="$(id -g)" docker-compose up
23
23
24
24
It will incrementally build and serve site at ` http://localhost:4000 ` .
25
25
26
+ In case the Dockerfile changed, re-build it with:
27
+
28
+ env UID="$(id -u)" GID="$(id -g)" docker-compose up --build
29
+
26
30
For more details on the Docker option, see [ this issue] ( https://github.com/scala/docs.scala-lang/issues/1286 ) .
27
31
28
32
## Contributing ##
Original file line number Diff line number Diff line change 1
- version : " 2"
1
+ version : ' 2'
2
+
2
3
services :
3
- scala-lang :
4
+ jekyll :
5
+ user : " ${UID}:${GID}"
4
6
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 "
6
8
ports :
7
- - 4000:4000
9
+ - ' 4000:4000'
8
10
volumes :
9
11
- .:/srv/jekyll
You can’t perform that action at this time.
0 commit comments