Simplified Mono build.

This commit is contained in:
soup-bowl
2026-01-31 20:55:09 +00:00
parent 0235b72f26
commit 3e9b1fa4bd
+1 -9
View File
@@ -1,8 +1,7 @@
FROM soupbowl/wine-mono:6 AS mono-build
FROM debian:bookworm-slim
ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
LABEL \
org.opencontainers.image.title="OpenSimulator (unofficial)" \
@@ -13,20 +12,13 @@ LABEL \
ARG OPENSIM_VERSION=0.9.2.2
ARG OPENSIM_SHA1="b280d109cf04755a02db1c729af5a5e4160d1ce6"
# Copy the built mono runtime from the build stage
COPY --from=mono-build /opt/mono /opt/mono
# Make mono available on PATH and install runtime utilities
# hadolint ignore=DL3008
RUN apt-get update \
&& apt-get install --no-install-recommends -y ca-certificates curl screen uuid-runtime libglib2.0-0 libgnutls30 tzdata libgdiplus libfontconfig1 \
&& ln -s /opt/mono/bin/mono /usr/local/bin/mono \
&& ln -s /opt/mono/bin/mono-sgen /usr/local/bin/mono-sgen || true \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN mkdir /opt/opensim-tmp \
&& curl -o /opt/opensim-tmp/opensim.tar.gz "http://opensimulator.org/dist/opensim-${OPENSIM_VERSION}.tar.gz" \
&& echo "${OPENSIM_SHA1} /opt/opensim-tmp/opensim.tar.gz" | sha1sum -c - \