Skip to content

Commit 62810f6

Browse files
committed
Simplify docker file and remove multistage builds (ruby)
1 parent 95bc3e1 commit 62810f6

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

docker/Dockerfile

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,10 @@
1-
FROM ruby:alpine3.13 as jekyll
2-
3-
RUN apk add --no-cache build-base gcc bash cmake git
4-
5-
RUN gem install bundler -v "~>2.2.11" && gem install jekyll
6-
7-
EXPOSE 4000
8-
9-
ENTRYPOINT [ "jekyll" ]
10-
11-
FROM jekyll/jekyll:4.2.0 as jekyll-serve
1+
FROM jekyll/jekyll:4.2.0 as jekyll
122

133
COPY run.sh /usr/local/bin/
144
RUN chmod a+x /usr/local/bin/run.sh
155

166
ENTRYPOINT [ "run.sh" ]
177

8+
EXPOSE 4000
9+
1810
CMD [ "bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000" ]

0 commit comments

Comments
 (0)