# Use the official Jekyll image from Docker Hub FROM bretfisher/jekyll-serve # Set the working directory WORKDIR /site # Copy the current directory contents into the container at /srv/jekyll COPY . /site # Install any needed packages specified in Gemfile RUN bundle install --retry 5 --jobs 20 ENTRYPOINT [ "docker-entrypoint.sh" ] CMD [ "bundle", "exec", "jekyll", "serve", "--force_polling", "-H", "0.0.0.0", "-P", "4000" ]