refactor docker image building

This commit is contained in:
rzen
2020-09-05 00:20:42 -04:00
parent a5484dd46b
commit e3a9b3fb41
6 changed files with 65 additions and 23 deletions

17
build/Dockerfile Normal file
View 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" ]