37 lines
1.2 KiB
Docker
37 lines
1.2 KiB
Docker
FROM alpine:3.8
|
|
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
|
|
LABEL \
|
|
org.label-schema.vendor="Alexey Skobkin - skobkin-ru@ya.ru" \
|
|
org.label-schema.url="https://bitbucket.org/skobkin/docker-murmur-official-static-image/" \
|
|
org.label-schema.name="Murmur Server (official static 32-bit build)" \
|
|
org.label-schema.version=$VERSION \
|
|
org.label-schema.vcs-url="https://skobkin@bitbucket.org/skobkin/docker-murmur-official-static-image.git" \
|
|
org.label-schema.build-date=$BUILD_DATE \
|
|
org.label-schema.license="MIT" \
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
WORKDIR /opt/murmur
|
|
|
|
RUN set -x \
|
|
&& apk add -q --no-cache --virtual .build-deps \
|
|
curl \
|
|
&& apk add -q --no-cache \
|
|
bash shadow tzdata \
|
|
&& curl -sSL https://mumble.info/snapshot/murmur-static_x86-${VERSION}snapshot.tar.bz2 -o /tmp/murmur.tar.bz2 \
|
|
&& tar -jx -f /tmp/murmur.tar.bz2 --strip-components=1 -C /opt/murmur \
|
|
&& mkdir -p /ssl \
|
|
&& mkdir -p /config \
|
|
&& mkdir -p /data \
|
|
&& rm /opt/murmur/murmur.ini \
|
|
&& apk del -q --purge .build-deps \
|
|
&& rm -rf /tmp/* /var/tmp/* /var/cache/apk/*
|
|
|
|
EXPOSE 64738/tcp 64738/udp
|
|
|
|
VOLUME ["/config", "/data", "/ssl"]
|
|
|
|
ENTRYPOINT ["/opt/murmur/murmur.x86", "-ini", "/config/murmur.ini", "-v"]
|