2019-01-07 21:51:22 +01:00
|
|
|
FROM godot-fedora:latest
|
|
|
|
|
|
|
|
ARG mono_version
|
|
|
|
|
2019-11-15 10:49:02 +01:00
|
|
|
RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi && \
|
|
|
|
dnf -y install --setopt=install_weak_deps=False \
|
|
|
|
autoconf automake cmake gcc gcc-c++ gettext libtool perl python && \
|
2019-11-15 11:56:31 +01:00
|
|
|
dnf clean all && \
|
2019-11-21 09:44:11 +01:00
|
|
|
git clone https://github.com/mono/mono --branch ${mono_version} --single-branch && \
|
2019-11-15 10:49:02 +01:00
|
|
|
cd mono && git submodule update --init && \
|
|
|
|
NOCONFIGURE=1 ./autogen.sh && \
|
2019-08-31 13:05:27 +02:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm && \
|
2019-11-15 10:49:02 +01:00
|
|
|
make -j && \
|
|
|
|
make install && \
|
|
|
|
cd .. && \
|
|
|
|
cert-sync /etc/pki/tls/certs/ca-bundle.crt && \
|
2019-11-21 09:44:11 +01:00
|
|
|
rpm -ivh --nodeps \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-16.3+xamarinxplat.2019.08.08.00.55-0.xamarin.2.epel8.noarch.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild-libhostfxr/msbuild-libhostfxr-3.0.0.2019.04.16.02.13-0.xamarin.4.epel8.x86_64.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-sdkresolver-16.3+xamarinxplat.2019.08.08.00.55-0.xamarin.2.epel8.noarch.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/n/nuget/nuget-5.2.0.6090.bin-0.xamarin.1.epel8.noarch.rpm && \
|
2019-11-15 10:49:02 +01:00
|
|
|
rm -rf /root/mono
|
2019-11-15 11:22:07 +01:00
|
|
|
|
|
|
|
CMD /bin/bash
|