FROM fedora:36

RUN dnf -y install \
    abattis-cantarell-fonts \
    cairo-devel \
    cairo-gobject-devel \
    ccache \
    clang \
    clang-analyzer \
    desktop-file-utils \
    diffutils \
    fontconfig-devel \
    fribidi-devel \
    gcc \
    gcc-c++ \
    gettext \
    git \
    glib2-devel \
    glib2-static \
    glibc-devel \
    glibc-headers \
    glibc-langpack-en \
    gobject-introspection-devel \
    google-droid-sans-fonts \
    gtk-doc \
    harfbuzz-devel \
    hicolor-icon-theme \
    itstool \
    json-glib-devel \
    libasan \
    lcov \
    libthai-devel \
    libubsan \
    libXft-devel \
    llvm \
    meson \
    ninja-build \
    python3 \
    python3-jinja2 \
    python3-markdown \
    python3-pip \
    python3-pygments \
    python3-toml \
    python3-typogrify \
    python3-wheel \
    redhat-rpm-config \
    thai-scalable-waree-fonts \
 && dnf clean all

ARG HOST_USER_ID=5555
ENV HOST_USER_ID ${HOST_USER_ID}
RUN useradd -u $HOST_USER_ID -ms /bin/bash user

USER user
WORKDIR /home/user

ENV LANG C.UTF-8
