refactor docker image building
This commit is contained in:
17
build/Dockerfile
Normal file
17
build/Dockerfile
Normal file
@ -0,0 +1,17 @@
|
||||
# borrowed from https://github.com/BretFisher/jekyll-serve
|
||||
|
||||
FROM ruby:2.7-alpine
|
||||
|
||||
RUN apk add --no-cache build-base gcc bash cmake git
|
||||
RUN apk add --no-cache imagemagick
|
||||
|
||||
# install both bundler 1.x and 2.x
|
||||
RUN gem install bundler -v "~>1.0" && gem install bundler jekyll
|
||||
|
||||
EXPOSE 4000
|
||||
|
||||
WORKDIR /site
|
||||
|
||||
ENTRYPOINT [ "jekyll" ]
|
||||
|
||||
CMD [ "--help" ]
|
Reference in New Issue
Block a user