@@ -2,9 +2,11 @@ FROM i386/ubuntu:trusty
2
2
3
3
ARG mono_version
4
4
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 && \
6
8
apt-get update && \
7
- apt-get -y install wget && \
9
+ apt-get -y install wget --no-install-recommends && \
8
10
cd /root && \
9
11
wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x1E9377A2BA9EF27F' | apt-key add - && \
10
12
wget -O- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x8E51A6D660CD88D67D65221D90BD7EACED8E640A' | apt-key add - && \
@@ -18,7 +20,9 @@ RUN if [ -z "${mono_version}" ]; then echo -e "\n\nargument mono-version is mand
18
20
ln -sf /usr/bin/gcc-ranlib-9 /usr/bin/gcc-ranlib && \
19
21
ln -sf /usr/bin/gcc-ar-9 /usr/bin/gcc-ar && \
20
22
ln -sf /usr/bin/gcc-9 /usr/bin/gcc && \
21
- ln -sf /usr/bin/g++-9 /usr/bin/g++
23
+ ln -sf /usr/bin/g++-9 /usr/bin/g++ && \
24
+ apt-get clean && \
25
+ rm -rf /var/lib/apt/lists/
22
26
23
27
RUN cp -a /root/files/${mono_version} /root && \
24
28
cd /root/${mono_version} && \
@@ -33,11 +37,9 @@ RUN cp -a /root/files/${mono_version} /root && \
33
37
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 && \
34
38
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 && \
35
39
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 && \
40
+ dpkg -i --force-all ./ *.deb && \
37
41
sed -i '/Depends.*mono/d' /var/lib/dpkg/status && \
38
42
ln -s /usr/bin/mono /usr/bin/cli && \
39
- apt-get clean && \
40
- rm -rf /var/lib/apt/lists/ && \
41
- rm *.deb
43
+ rm -f ./*.deb
42
44
43
- CMD /bin/bash
45
+ CMD [" /bin/bash"]
0 commit comments