update mumble (#303)

* update mumble

mumble now ships their own docker image
updating ours to be based on that.

* update entrypoint

uses the mumble executable to print the current version
This commit is contained in:
Michael (Parker) Parker
2025-05-24 09:12:07 -04:00
committed by GitHub
parent d4ef3db57e
commit 05bb2e03f8
3 changed files with 4 additions and 178 deletions

View File

@@ -1,28 +1,10 @@
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim AS builder
# Copy and run the build script
COPY build.sh /build.sh
RUN chmod +x /build.sh
RUN cd / && ./build.sh
FROM --platform=$TARGETOS/$TARGETARCH debian:bookworm-slim
# Create necessary directories
RUN mkdir -p /usr/local/bin /usr/local/share/mumble
# Copy the built Mumble server binary and the latest tag file and the build log from the builder stage
COPY --from=builder /usr/src/mumble/git/build/mumble-server /usr/local/bin/mumble-server
COPY --from=builder /usr/src/mumble/git/build/latest_tag.txt /usr/local/share/mumble/latest_tag.txt
COPY --from=builder /usr/src/mumble/build.log /usr/local/share/mumble/build.log
FROM --platform=$TARGETOS/$TARGETARCH ghcr.io/mumble-voip/mumble-server:latest
# Install runtime dependencies
RUN apt update \
&& apt -y install curl tar tzdata file ca-certificates sqlite3 iproute2 tini \
&& apt -y install iproute2 tini \
&& useradd -m -d /home/container container
# Needed packages to run the mumble server
RUN apt -y install libqt5sql5 libqt5sql5-sqlite libavahi-compat-libdnssd-dev libqt5dbus5 libzeroc-ice-dev libprotobuf-dev qtbase5-dev qtbase5-dev-tools
# Set up user and working directory
USER container
ENV USER=container HOME=/home/container
@@ -37,4 +19,4 @@ RUN chmod +x /entrypoint.sh
# Define entrypoint and command
ENTRYPOINT ["/usr/bin/tini", "-g", "--"]
CMD ["/entrypoint.sh"]
CMD ["/entrypoint.sh"]