FROM registry.yandex.net/rtc-base/focal:stable

MAINTAINER Andrew Krasichkov "buglloc@yandex-team.ru"
ENV DEBIAN_FRONTEND noninteractive

RUN set -xe && \
    apt-get update -y && \
    apt-get install -y git locales && \
    locale-gen ru_RU.UTF-8 && update-locale LANG=ru_RU.UTF-8 && \
    apt-get install -y build-essential ruby ruby-dev && gem install jekyll bundler && \
    apt clean all

# . - content root folder, must contain all destinations from pkg.json
COPY . /

WORKDIR /

CMD /run.sh
