Skip to content

Commit c3f92ba

Browse files
committed
change dockerfile from mono:latest to ubuntu:20.04 and install mono manually
1 parent 136b5cd commit c3f92ba

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

Dockerfile

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,21 @@
1616

1717
# MAINTAINER Jan Friedrich
1818

19-
FROM mono:latest
19+
FROM ubuntu:20.04
20+
ENV DEBIAN_FRONTEND=noninteractive \
21+
TZ=Etc/UTC
22+
23+
# Install Mono SDK (compiler, msbuild, runtime, etc.)
24+
RUN apt-get update && \
25+
apt-get install -y gnupg ca-certificates && \
26+
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
27+
echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" | tee /etc/apt/sources.list.d/mono-official-stable.list && \
28+
apt-get update && \
29+
apt-get install -y mono-complete && \
30+
rm -rf /var/lib/apt/lists/*
31+
32+
# Check Mono version
33+
RUN mono --version
2034

2135
RUN apt-get update \
2236
&& apt-get upgrade -y \

0 commit comments

Comments
 (0)