Skip to content

Commit 19767dc

Browse files
committed
Building pubsite with docker
1 parent 16f8d7a commit 19767dc

File tree

4 files changed

+37
-33
lines changed

4 files changed

+37
-33
lines changed

.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Dockerfile
2+
.gitignore
3+
.git
4+

Dockerfile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM jekyll/builder as builder
2+
3+
RUN gem install bundler:2.2.3
4+
5+
RUN mkdir /site; \
6+
chown -R jekyll:jekyll /site
7+
WORKDIR /site
8+
9+
COPY Gemfile Gemfile.lock /site/
10+
RUN bundle install
11+
12+
COPY . /site/
13+
RUN bundle exec rake build:production
14+
15+
FROM nginx:alpine
16+
17+
RUN rm -rf /usr/share/nginx/html/*
18+
COPY --from=builder /site/_site/ /usr/share/nginx/html
19+

Gemfile.lock

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
addressable (2.6.0)
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.1.5)
8-
em-websocket (0.5.1)
7+
concurrent-ruby (1.1.7)
8+
em-websocket (0.5.2)
99
eventmachine (>= 0.12.9)
1010
http_parser.rb (~> 0.6.0)
1111
eventmachine (1.2.7)
12-
ffi (1.11.1)
12+
ffi (1.14.2)
1313
forwardable-extended (2.6.0)
1414
http_parser.rb (0.6.0)
1515
i18n (0.9.5)
1616
concurrent-ruby (~> 1.0)
17-
jekyll (3.8.4)
17+
jekyll (3.8.7)
1818
addressable (~> 2.4)
1919
colorator (~> 1.0)
2020
em-websocket (~> 0.5)
@@ -40,24 +40,22 @@ GEM
4040
liquid (4.0.3)
4141
liquid-md5 (0.0.3)
4242
liquid (>= 2.5, < 5.0)
43-
listen (3.1.5)
44-
rb-fsevent (~> 0.9, >= 0.9.4)
45-
rb-inotify (~> 0.9, >= 0.9.7)
46-
ruby_dep (~> 1.2)
43+
listen (3.3.3)
44+
rb-fsevent (~> 0.10, >= 0.10.3)
45+
rb-inotify (~> 0.9, >= 0.9.10)
4746
mercenary (0.3.6)
4847
minima (2.5.0)
4948
jekyll (~> 3.5)
5049
jekyll-feed (~> 0.9)
5150
jekyll-seo-tag (~> 2.1)
5251
pathutil (0.16.2)
5352
forwardable-extended (~> 2.6)
54-
public_suffix (3.1.1)
53+
public_suffix (4.0.6)
5554
rake (12.3.3)
56-
rb-fsevent (0.10.3)
57-
rb-inotify (0.10.0)
55+
rb-fsevent (0.10.4)
56+
rb-inotify (0.10.1)
5857
ffi (~> 1.0)
59-
rouge (3.8.0)
60-
ruby_dep (1.5.0)
58+
rouge (3.26.0)
6159
safe_yaml (1.0.5)
6260
sass (3.7.4)
6361
sass-listen (~> 4.0.0)
@@ -78,4 +76,4 @@ DEPENDENCIES
7876
tzinfo-data
7977

8078
BUNDLED WITH
81-
1.16.3
79+
2.2.3

Jenkinsfile

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)