forked from PHLAK/docker-mumble
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (32 loc) · 1.19 KB
/
Dockerfile
File metadata and controls
45 lines (32 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM alpine:3.15.4
LABEL maintainer="Chris Kankiewicz <Chris@ChrisKankiewicz.com>"
# Define Mumble version
ARG MUMBLE_VERSION=1.3.4
# Define environment variables
ENV CONFIG_PATH=/etc/mumble/config.ini
# 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 run script
COPY files/run.sh /opt/mumble/run.sh
# 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 su-exec 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/run.sh"]