2019-01-07 21:51:22 +01:00
|
|
|
FROM i386/ubuntu:trusty
|
|
|
|
|
|
|
|
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 && \
|
|
|
|
apt-get update && \
|
2019-01-07 21:51:22 +01:00
|
|
|
apt-get -y install wget && \
|
2019-01-17 23:06:38 +01:00
|
|
|
cd /root && \
|
2019-01-07 21:51:22 +01:00
|
|
|
wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F' | apt-key add - && \
|
2019-02-23 22:52:53 +01:00
|
|
|
wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8E51A6D660CD88D67D65221D90BD7EACED8E640A' | apt-key add - && \
|
2019-01-07 21:51:22 +01:00
|
|
|
echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu trusty main' >> /etc/apt/sources.list && \
|
2019-02-23 22:52:53 +01:00
|
|
|
echo 'deb http://ppa.launchpad.net/mc3man/trusty-media/ubuntu trusty main' >> /etc/apt/sources.list && \
|
2019-11-15 11:56:31 +01:00
|
|
|
apt-get -y update && \
|
|
|
|
apt-get -y install --no-install-recommends \
|
|
|
|
autoconf automake bzip2 cmake curl gettext git libtool make perl scons xz-utils \
|
2020-10-13 17:06:37 +02:00
|
|
|
gcc-9 g++-9 libudev-dev libx11-dev libxcursor-dev libxrandr-dev libasound2-dev libpulse-dev \
|
2019-11-15 11:56:31 +01:00
|
|
|
libgl1-mesa-dev libglu1-mesa-dev libxi-dev libxinerama-dev yasm && \
|
2020-10-13 17:06:37 +02:00
|
|
|
ln -sf /usr/bin/gcc-ranlib-9 /usr/bin/gcc-ranlib && \
|
|
|
|
ln -sf /usr/bin/gcc-ar-9 /usr/bin/gcc-ar && \
|
|
|
|
ln -sf /usr/bin/gcc-9 /usr/bin/gcc && \
|
|
|
|
ln -sf /usr/bin/g++-9 /usr/bin/g++
|
2019-11-15 10:49:02 +01:00
|
|
|
|
2020-03-19 18:13:06 +01:00
|
|
|
RUN cp -a /root/files/${mono_version} /root && \
|
|
|
|
cd /root/${mono_version} && \
|
2019-11-15 10:49:02 +01:00
|
|
|
NOCONFIGURE=1 ./autogen.sh && \
|
2019-01-17 23:06:38 +01:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var/lib/mono --disable-boehm --host=i386-linux-gnu && \
|
2019-01-07 21:51:22 +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-01-07 21:51:22 +01:00
|
|
|
cert-sync /etc/ssl/certs/ca-certificates.crt && \
|
2020-10-13 17:06:37 +02:00
|
|
|
wget https://download.mono-project.com/repo/ubuntu/pool/main/m/msbuild/msbuild_16.6+xamarinxplat.2020.04.29.14.43-0xamarin5+ubuntu1604b1_all.deb && \
|
|
|
|
wget https://download.mono-project.com/repo/ubuntu/pool/main/c/core-setup/msbuild-libhostfxr_3.0.0.2019.04.16.02.13-0xamarin4+ubuntu1604b1_i386.deb && \
|
|
|
|
wget https://download.mono-project.com/repo/ubuntu/pool/main/m/msbuild/msbuild-sdkresolver_16.6+xamarinxplat.2020.04.29.14.43-0xamarin5+ubuntu1604b1_all.deb && \
|
|
|
|
wget https://download.mono-project.com/repo/ubuntu/pool/main/n/nuget/nuget_5.5.0.6382.bin-0xamarin1+ubuntu1604b1_all.deb && \
|
2019-01-07 21:51:22 +01:00
|
|
|
dpkg -i --force-all *.deb && \
|
|
|
|
sed -i '/Depends.*mono/d' /var/lib/dpkg/status && \
|
|
|
|
ln -s /usr/bin/mono /usr/bin/cli && \
|
|
|
|
apt-get clean && \
|
|
|
|
rm -rf /var/lib/apt/lists/ && \
|
2019-11-21 09:44:11 +01:00
|
|
|
rm *.deb
|
2019-01-07 21:51:22 +01:00
|
|
|
|
2019-11-15 11:22:07 +01:00
|
|
|
CMD /bin/bash
|