-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
51 lines (41 loc) · 1.6 KB
/
Dockerfile
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
46
47
48
49
50
51
FROM alpine
ARG BUILD_DATE
ARG VCS_REF
ARG VERSION
LABEL \
org.opencontainers.image.vendor="The Goofball - goofball222@gmail.com" \
org.opencontainers.image.url="https://github.com/goofball222/murmur" \
org.opencontainers.image.title="Murmur (Mumble) Server" \
org.opencontainers.image.description="Murmur (Mumble) Server" \
org.opencontainers.image.version=$VERSION \
org.opencontainers.image.source="https://github.com/goofball222/murmur" \
org.opencontainers.image.revision=$VCS_REF \
org.opencontainers.image.created=$BUILD_DATE \
org.opencontainers.image.licenses="Apache-2.0"
ENV \
DEBUG=false \
MURMUR_OPTS= \
PGID=999 \
PUID=999 \
RUN_CHOWN=true
WORKDIR /opt/murmur
COPY root /
RUN set -x \
&& delgroup ping \
&& addgroup -g $PGID murmur \
&& adduser -D -G murmur -u $PUID murmur \
&& apk add -q --no-cache --virtual .build-deps \
curl \
&& apk add -q --no-cache \
bash shadow tzdata \
&& curl -sSL https://dl.mumble.info/stable/murmur-static_x86-${VERSION}.tar.bz2 -o /tmp/murmur-static_x86-${VERSION}.tar.bz2 \
&& tar -jx -f /tmp/murmur-static_x86-${VERSION}.tar.bz2 --strip-components=1 -C /opt/murmur \
&& bash -c 'mkdir -p {cert,config,data,log}' \
&& mv /opt/murmur/murmur.ini /opt/murmur/murmur.ini-default \
&& chown -R murmur:murmur /opt/murmur \
&& apk del -q --purge .build-deps \
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
EXPOSE 64738/tcp 64738/udp
VOLUME ["/opt/murmur/cert","/opt/murmur/config","/opt/murmur/data","/opt/murmur/log"]
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["murmur"]