blob: d39b0561d30fd1748ffd69fb780104b55dfb3843 [file] [log] [blame]
FROM ruby:2.4-alpine
RUN apk add --no-cache build-base gcc bash cmake
COPY Gemfile Gemfile.lock ./
RUN bundle install
EXPOSE 4000
WORKDIR /site
# create new site by setting -e JEKYLL_NEW=true
ENV JEKYLL_NEW false
COPY docker-entrypoint.sh /usr/local/bin/
# on every container start we'l'
ENTRYPOINT [ "docker-entrypoint.sh" ]
CMD [ "bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000" ]