bin/Dockerfile.website
FROM ruby:3-slim-bullseye
RUN apt-get -y update && \
apt-get -y install build-essential && \
mkdir -p /tmp/gems
WORKDIR /tmp/gems
COPY Gemfile* /tmp/gems/
RUN bundle install
WORKDIR /usr/src/app
CMD ["bundle", "exec", "jekyll", "build", "--destination", "/tmp/_site"]