FROM ubuntu:22.04

RUN apt-get update && apt-get install -y --no-install-recommends \
    ruby-full build-essential zlib1g-dev \
    build-essential \
    git nodejs git buildah \
    && rm -rf /var/lib/apt/lists/* \
 && gem install --no-document jekyll -v 4.4.1 \
 && gem install --no-document webrick -v 1.9 \
 && gem install bundler

EXPOSE 4000
WORKDIR /data
CMD bundle install && bundle exec jekyll serve --verbose --host 0.0.0.0
