commit 6ad2390cfdb5f0063f7ada741d20d8544cd828aa Author: Fabian Stamm Date: Sun Dec 15 00:40:47 2019 +0100 First Commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..35e0c96 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,39 @@ +FROM alpine:3.10 +LABEL maintainer="Chris Kankiewicz " + +# Define Mumble version +ARG MUMBLE_VERSION=1.3.0 + +# Create Mumble directories +RUN mkdir -pv /opt/mumble /etc/mumble + +# Create non-root user +RUN adduser -DHs /sbin/nologin mumble + +# Copy config file +COPY files/config.ini /etc/mumble/config.ini + +# Copy SuperUser password update script +COPY files/supw /usr/local/bin/supw +RUN chmod +x /usr/local/bin/supw + +# Set the bzip archive URL +ARG BZIP_URL=https://github.com/mumble-voip/mumble/releases/download/${MUMBLE_VERSION}/murmur-static_x86-${MUMBLE_VERSION}.tar.bz2 + +# Install dependencies, fetch Mumble bzip archive and chown files +RUN apk add --update ca-certificates bzip2 tar tzdata wget \ + && wget -qO- ${BZIP_URL} | tar -xjv --strip-components=1 -C /opt/mumble \ + && apk del ca-certificates bzip2 tar wget && rm -rf /var/cache/apk/* \ + && chown -R mumble:mumble /etc/mumble /opt/mumble + +# Expose ports +EXPOSE 64738 64738/udp + +# Set running user +USER mumble + +# Set volumes +VOLUME /etc/mumble + +# Default command +CMD ["/opt/mumble/murmur.x86", "-fg", "-ini", "/etc/mumble/config.ini"] diff --git a/files/config.ini b/files/config.ini new file mode 100644 index 0000000..20fffde --- /dev/null +++ b/files/config.ini @@ -0,0 +1,13 @@ +# Murmur configuration file. +# See https://wiki.mumble.info/wiki/Murmur.ini for more options + +# Path to database. If blank, will search for +# murmur.sqlite in default locations or create it if not found. +database=/etc/mumble/murmur.sqlite + +# If Murmur is started as root, which user should it switch to? +# This option is ignored if Murmur isn't started with root privileges. +uname=mumble + +bandwidth=130000 +welcometext=Welcome! Unauthorized access is prohibited \ No newline at end of file diff --git a/files/supw b/files/supw new file mode 100644 index 0000000..62d09b7 --- /dev/null +++ b/files/supw @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +/opt/mumble/murmur.x86 -ini /etc/mumble/config.ini -readsupw \ No newline at end of file