blob: fba59b62b5dc366d7cbe33910df4ca19540252a8 [file] [log] [blame]
FROM ruby:3.3-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" ]