FROM alpine:3.3 MAINTAINER Chris Kankiewicz # Define Mumble version ENV MUMBLE_VERSION 1.2.12 # Create Mumble directories ENV MUMBLE_DIR /opt/mumble ENV CONFIG_DIR /srv/mumble RUN mkdir -pv ${MUMBLE_DIR} ${CONFIG_DIR} # Copy config file COPY files/config.ini ${CONFIG_DIR}/config.ini # Copy SuperUser password update script COPY files/supw /bin/supw RUN chmod +x /bin/supw # Set the zipball URL ENV BZIP_URL https://github.com/mumble-voip/mumble/releases/download/${MUMBLE_VERSION}/murmur-static_x86-${MUMBLE_VERSION}.tar.bz2 # Install dependencies and fetch Mumble bzip archive RUN apk add --update ca-certificates bzip2 tar wget \ && wget -qO- ${BZIP_URL} | tar -xjv --strip-components=1 -C ${MUMBLE_DIR} \ && apk del ca-certificates bzip2 tar wget && rm -rf /var/cache/apk/* # Expose ports EXPOSE 64738 64738/udp # Set volumes VOLUME ${CONFIG_DIR} # Default command CMD ${MUMBLE_DIR}/murmur.x86 -fg -ini ${CONFIG_DIR}/config.ini