This is an automated email from the ASF dual-hosted git repository.

freeandnil pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4net.git


The following commit(s) were added to refs/heads/master by this push:
     new c3f92ba0 change dockerfile from mono:latest to ubuntu:20.04 and 
install mono manually
c3f92ba0 is described below

commit c3f92ba0cbca802573dd74843ca2528d9f6ef8f1
Author: Jan Friedrich <[email protected]>
AuthorDate: Tue Aug 19 22:48:17 2025 +0200

    change dockerfile from mono:latest to ubuntu:20.04 and install mono manually
---
 Dockerfile | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index b018427e..f39c387b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -16,7 +16,21 @@
 
 # MAINTAINER Jan Friedrich
 
-FROM mono:latest
+FROM ubuntu:20.04
+ENV DEBIAN_FRONTEND=noninteractive \
+    TZ=Etc/UTC
+
+# Install Mono SDK (compiler, msbuild, runtime, etc.)
+RUN apt-get update && \
+    apt-get install -y gnupg ca-certificates && \
+    apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 
3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF && \
+    echo "deb https://download.mono-project.com/repo/ubuntu stable-focal main" 
| tee /etc/apt/sources.list.d/mono-official-stable.list && \
+    apt-get update && \
+    apt-get install -y mono-complete && \
+    rm -rf /var/lib/apt/lists/*
+
+# Check Mono version
+RUN mono --version
 
 RUN apt-get update \
   && apt-get upgrade -y \

Reply via email to