Skip to content

Commit 403d3f0

Browse files
authored
Merge pull request #2010 from vincenzobaz/fix/docker-setup
Adopt custom Dockerfile and incremental build
2 parents 787a42d + 17e9c0e commit 403d3f0

File tree

2 files changed

+18
-7
lines changed

2 files changed

+18
-7
lines changed

Dockerfile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
FROM ruby:2.5
2+
3+
RUN gem install bundler jekyll
4+
5+
WORKDIR /srv/jekyll
6+
7+
COPY Gemfile .
8+
COPY Gemfile.lock .
9+
10+
RUN bundle install
11+

docker-compose.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
version: '2'
2-
1+
version: "2"
32
services:
4-
jekyll:
5-
image: bretfisher/jekyll-serve
6-
volumes:
7-
- .:/site
3+
scala-lang:
4+
build: .
5+
command: bundle exec jekyll serve --incremental --host=0.0.0.0
86
ports:
9-
- '8080:4000'
7+
- 4000:4000
8+
volumes:
9+
- .:/srv/jekyll

0 commit comments

Comments
 (0)