@@ -2,9 +2,11 @@ FROM i386/ubuntu:trusty
22
33ARG mono_version
44
5- RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mandatory!\n\n"; exit 1; fi && \
5+ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
6+
7+ RUN if [ -z "${mono_version}" ]; then printf "\n\nArgument mono_version is mandatory!\n\n"; exit 1; fi && \
68 apt-get update && \
7- apt-get -y install wget && \
9+ apt-get -y install wget --no-install-recommends && \
810 cd /root && \
911 wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F' | apt-key add - && \
1012 wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8E51A6D660CD88D67D65221D90BD7EACED8E640A' | apt-key add - && \
@@ -18,7 +20,10 @@ RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mand
1820 ln -sf /usr/bin/gcc-ranlib-8 /usr/bin/gcc-ranlib && \
1921 ln -sf /usr/bin/gcc-ar-8 /usr/bin/gcc-ar && \
2022 ln -sf /usr/bin/gcc-8 /usr/bin/gcc && \
21- ln -sf /usr/bin/g++-8 /usr/bin/g++
23+ ln -sf /usr/bin/g++-8 /usr/bin/g++ && \
24+ apt-get clean && \
25+ rm -rf /var/lib/apt/lists/ && \
26+ rm ./*.deb
2227
2328RUN cp -a /root/files/${mono_version} /root && \
2429 cd /root/${mono_version} && \
@@ -33,11 +38,8 @@ RUN cp -a /root/files/${mono_version} /root && \
3338 wget https://download.mono-project.com/repo/ubuntu/pool/main/c/core-setup/msbuild-libhostfxr_3.0.0.2019.04.16.02.13-0xamarin3+ubuntu1604b1_i386.deb && \
3439 wget https://download.mono-project.com/repo/ubuntu/pool/main/m/msbuild/msbuild-sdkresolver_16.3+xamarinxplat.2019.08.08.00.55-0xamarin2+ubuntu1604b1_all.deb && \
3540 wget https://download.mono-project.com/repo/ubuntu/pool/main/n/nuget/nuget_5.2.0.6090.bin-0xamarin1+ubuntu1604b1_all.deb && \
36- dpkg -i --force-all *.deb && \
41+ dpkg -i --force-all ./ *.deb && \
3742 sed -i '/Depends.*mono/d' /var/lib/dpkg/status && \
38- ln -s /usr/bin/mono /usr/bin/cli && \
39- apt-get clean && \
40- rm -rf /var/lib/apt/lists/ && \
41- rm *.deb
43+ ln -s /usr/bin/mono /usr/bin/cli
4244
43- CMD /bin/bash
45+ CMD [" /bin/bash"]
0 commit comments