build-containers/Dockerfile.mono

27 lines
1.5 KiB
Docker
Raw Normal View History

2019-01-07 21:51:22 +01:00
FROM godot-fedora:latest
ARG mono_version
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi
RUN dnf -y install --setopt=install_weak_deps=False \
autoconf automake cmake gettext gcc gcc-c++ libtool perl python && \
dnf clean all && \
if [ ${mono_version%%.*} -ge 6 ]; then \
curl https://download.mono-project.com/sources/mono/mono-${mono_version}.tar.xz | tar xJ; \
else \
curl https://download.mono-project.com/sources/mono/mono-${mono_version}.tar.bz2 | tar xj; \
fi && \
2019-01-07 21:51:22 +01:00
cd mono-${mono_version} && \
autoreconf -vfi && \
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm && \
make -j && make install && \
2019-01-07 21:51:22 +01:00
cd /root && \
rm -rf mono-${mono_version} && \
cert-sync /etc/pki/tls/certs/ca-bundle.crt
2019-01-07 21:51:22 +01:00
RUN rpm -ivh --nodeps https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-16.0+xamarinxplat.2018.09.26.17.53-0.xamarin.5.epel8.noarch.rpm \
https://download.mono-project.com/repo/centos8-stable/m/msbuild-libhostfxr/msbuild-libhostfxr-2.0.0.2017.07.06.00.01-0.xamarin.3.epel8.x86_64.rpm \
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-sdkresolver-16.0+xamarinxplat.2018.09.26.17.53-0.xamarin.5.epel8.noarch.rpm \
https://download.mono-project.com/repo/centos8-stable/n/nuget/nuget-4.7.0.5148.bin-0.xamarin.2.epel8.noarch.rpm