Skip to content

Commit c5e3505

Browse files
committed
Added support for building in docker
1 parent 6b0e1d7 commit c5e3505

File tree

3 files changed

+62
-37
lines changed

3 files changed

+62
-37
lines changed

Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM ruby:2.7.1
2+
RUN mkdir /app
3+
WORKDIR /app
4+
COPY Gemfile /app/Gemfile
5+
COPY Gemfile.lock /app/Gemfile.lock
6+
7+
RUN bundle config set deployment true
8+
RUN bundle install --jobs=4
9+
10+
COPY . /app
11+
12+
EXPOSE 3000
13+
14+
ENTRYPOINT [ "bundle" ]
15+
16+
CMD [ "exec", "jekyll", "serve", "--drafts", "-H", "0.0.0.0", "-P", "3000" ]

Gemfile.backup renamed to Gemfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,6 @@ source "https://rubygems.org"
77
git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
88

99
gem "jekyll"
10+
gem "jekyll-sitemap"
11+
1012
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

Gemfile.lock

Lines changed: 44 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,63 +1,70 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.5.2)
5-
public_suffix (>= 2.0.2, < 4.0)
4+
addressable (2.7.0)
5+
public_suffix (>= 2.0.2, < 5.0)
66
colorator (1.1.0)
7-
concurrent-ruby (1.0.5)
7+
concurrent-ruby (1.1.7)
88
em-websocket (0.5.1)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
11-
eventmachine (1.2.7-x64-mingw32)
12-
ffi (1.9.25-x64-mingw32)
11+
eventmachine (1.2.7)
12+
ffi (1.13.1)
1313
forwardable-extended (2.6.0)
1414
http_parser.rb (0.6.0)
15-
i18n (0.9.5)
15+
i18n (1.8.5)
1616
concurrent-ruby (~> 1.0)
17-
jekyll (3.8.4)
17+
jekyll (4.1.1)
1818
addressable (~> 2.4)
1919
colorator (~> 1.0)
2020
em-websocket (~> 0.5)
21-
i18n (~> 0.7)
22-
jekyll-sass-converter (~> 1.0)
21+
i18n (~> 1.0)
22+
jekyll-sass-converter (~> 2.0)
2323
jekyll-watch (~> 2.0)
24-
kramdown (>= 2.3.0)
24+
kramdown (~> 2.1)
25+
kramdown-parser-gfm (~> 1.0)
2526
liquid (~> 4.0)
26-
mercenary (~> 0.3.3)
27+
mercenary (~> 0.4.0)
2728
pathutil (~> 0.9)
28-
rouge (>= 1.7, < 4)
29+
rouge (~> 3.0)
2930
safe_yaml (~> 1.0)
30-
jekyll-sass-converter (1.5.2)
31-
sass (~> 3.4)
32-
jekyll-watch (2.0.0)
31+
terminal-table (~> 1.8)
32+
jekyll-sass-converter (2.1.0)
33+
sassc (> 2.0.1, < 3.0)
34+
jekyll-sitemap (1.4.0)
35+
jekyll (>= 3.7, < 5.0)
36+
jekyll-watch (2.2.1)
3337
listen (~> 3.0)
34-
kramdown (>= 2.3.0)
35-
liquid (4.0.0)
36-
listen (3.1.5)
37-
rb-fsevent (~> 0.9, >= 0.9.4)
38-
rb-inotify (~> 0.9, >= 0.9.7)
39-
ruby_dep (~> 1.2)
40-
mercenary (0.3.6)
41-
pathutil (0.16.1)
38+
kramdown (2.3.0)
39+
rexml
40+
kramdown-parser-gfm (1.1.0)
41+
kramdown (~> 2.0)
42+
liquid (4.0.3)
43+
listen (3.2.1)
44+
rb-fsevent (~> 0.10, >= 0.10.3)
45+
rb-inotify (~> 0.9, >= 0.9.10)
46+
mercenary (0.4.0)
47+
pathutil (0.16.2)
4248
forwardable-extended (~> 2.6)
43-
public_suffix (3.0.3)
44-
rb-fsevent (0.10.3)
45-
rb-inotify (0.9.10)
46-
ffi (>= 0.5.0, < 2)
47-
rouge (3.2.1)
48-
ruby_dep (1.5.0)
49-
safe_yaml (1.0.4)
50-
sass (3.6.0)
51-
sass-listen (~> 4.0.0)
52-
sass-listen (4.0.0)
53-
rb-fsevent (~> 0.9, >= 0.9.4)
54-
rb-inotify (~> 0.9, >= 0.9.7)
49+
public_suffix (4.0.6)
50+
rb-fsevent (0.10.4)
51+
rb-inotify (0.10.1)
52+
ffi (~> 1.0)
53+
rexml (3.2.4)
54+
rouge (3.23.0)
55+
safe_yaml (1.0.5)
56+
sassc (2.4.0)
57+
ffi (~> 1.9)
58+
terminal-table (1.8.0)
59+
unicode-display_width (~> 1.1, >= 1.1.1)
60+
unicode-display_width (1.7.0)
5561

5662
PLATFORMS
57-
x64-mingw32
63+
ruby
5864

5965
DEPENDENCIES
6066
jekyll
67+
jekyll-sitemap
6168

6269
BUNDLED WITH
63-
1.16.2
70+
2.1.4

0 commit comments

Comments
 (0)