FROM git.plabble.org/maurice/fedora:main

USER root
RUN --mount=type=cache,id=dnf-cache,target=/var/cache/libdnf5 \
  dnf -y --setopt=keepcache=1 install dotnet-sdk-9.0 dotnet-sdk-10.0

COPY install-roslyn.sh /tmp/install-roslyn.sh
RUN chmod +x /tmp/install-roslyn.sh && /tmp/install-roslyn.sh

USER user
RUN dotnet tool install --global dotnet-ef
