File tree Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Expand file tree Collapse file tree 3 files changed +17
-8
lines changed Original file line number Diff line number Diff line change
1
+ FROM ruby:2.5
2
+
3
+ RUN gem install bundler jekyll
4
+
5
+ RUN mkdir /srv/jekyll
6
+
7
+ WORKDIR /srv/jekyll
8
+
9
+ COPY Gemfile .
10
+ COPY Gemfile.lock .
11
+
12
+ RUN bundle install
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
command -v docker-compose > /dev/null 2>&1 || { echo >&2 " Please install Docker Compose: https://docs.docker.com/compose/install/" ; exit 1; }
3
- docker-compose run --service-ports scala-lang jekyll serve --incremental
3
+ docker-compose up
Original file line number Diff line number Diff line change 1
1
version : " 2"
2
2
services :
3
3
scala-lang :
4
- image : jekyll/jekyll:latest
5
- volumes :
6
- - $PWD:/srv/jekyll
7
- - $PWD/vendor/bundle:/usr/local/bundle
4
+ build : .
5
+ command : bundle exec jekyll serve --incremental --host=0.0.0.0
8
6
ports :
9
7
- 4000:4000
10
- - 35729:35729
11
- - 3000:3000
12
- - 80:4000
8
+ volumes :
9
+ - .:/srv/jekyll
You can’t perform that action at this time.
0 commit comments