2019-12-02 13:30:41 +01:00
|
|
|
ARG img_version
|
|
|
|
FROM godot-fedora:${img_version}
|
2019-01-07 21:51:22 +01:00
|
|
|
|
|
|
|
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 \
|
2020-10-13 17:06:37 +02:00
|
|
|
gcc gcc-c++ make yasm \
|
|
|
|
autoconf automake cmake gettext libtool perl && \
|
2020-03-19 18:13:06 +01:00
|
|
|
cp -a /root/files/${mono_version} /root && \
|
|
|
|
cd /root/${mono_version} && \
|
2019-11-15 10:49:02 +01:00
|
|
|
NOCONFIGURE=1 ./autogen.sh && \
|
2020-10-13 17:06:37 +02:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm --host=x86_64-linux-gnu && \
|
2019-11-15 10:49:02 +01:00
|
|
|
make -j && \
|
|
|
|
make install && \
|
2019-12-03 12:47:51 +01:00
|
|
|
cd /root && \
|
2020-03-19 18:13:06 +01:00
|
|
|
rm -rf /root/${mono_version} && \
|
2019-11-15 10:49:02 +01:00
|
|
|
cert-sync /etc/pki/tls/certs/ca-bundle.crt && \
|
2019-11-21 09:44:11 +01:00
|
|
|
rpm -ivh --nodeps \
|
2020-10-13 17:06:37 +02:00
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-16.6+xamarinxplat.2020.04.29.14.43-0.xamarin.6.epel8.noarch.rpm \
|
|
|
|
https://download.mono-project.com/repo/centos8-stable/m/msbuild/msbuild-sdkresolver-16.6+xamarinxplat.2020.04.29.14.43-0.xamarin.6.epel8.noarch.rpm \
|
2019-11-21 09:44:11 +01:00
|
|
|
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 \
|
2020-10-13 17:06:37 +02:00
|
|
|
https://download.mono-project.com/repo/centos8-stable/n/nuget/nuget-5.6.0.6489.bin-0.xamarin.1.epel8.noarch.rpm
|
2019-11-15 11:22:07 +01:00
|
|
|
|
|
|
|
CMD /bin/bash
|