2023-04-01 20:58:53 +00:00
|
|
|
# Alpine 3.17 provides OpenSSL 3.x+ instead of 1.1.x+ which Mumble currently uses.
|
|
|
|
# Alpine 3.16 provides OpenSSL 1.1.1t-r2 which causes SSL.c build error.
|
|
|
|
# see: https://github.com/mumble-voip/mumble/issues/5968
|
|
|
|
FROM alpine:3.15 as builder
|
2018-10-06 15:25:29 +00:00
|
|
|
|
2023-04-01 20:58:53 +00:00
|
|
|
ARG VERSION=1.4.287
|
2018-10-06 15:25:29 +00:00
|
|
|
|
|
|
|
LABEL \
|
|
|
|
org.label-schema.vendor="Alexey Skobkin - skobkin-ru@ya.ru" \
|
2022-01-20 00:35:11 +00:00
|
|
|
org.label-schema.url="https://gitlab.com/skobkin/docker-murmur" \
|
|
|
|
org.label-schema.name="Murmur Server" \
|
2018-10-06 15:25:29 +00:00
|
|
|
org.label-schema.version=$VERSION \
|
2022-01-20 00:35:11 +00:00
|
|
|
org.label-schema.vcs-url="https://gitlab.com/skobkin/docker-murmur.git" \
|
2018-10-06 15:25:29 +00:00
|
|
|
org.label-schema.license="MIT" \
|
|
|
|
org.label-schema.schema-version="1.0"
|
|
|
|
|
2022-01-20 00:35:11 +00:00
|
|
|
WORKDIR /tmp/murmur
|
2018-10-06 15:25:29 +00:00
|
|
|
|
2022-01-20 00:35:11 +00:00
|
|
|
# openssl3-dev qt5-qtsvg-dev avahi-dev git
|
2018-10-06 15:25:29 +00:00
|
|
|
RUN set -x \
|
2022-01-20 00:35:11 +00:00
|
|
|
apk update -q --no-cache --no-progress && \
|
|
|
|
apk add -q --no-cache --no-progress curl
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
curl -sSL https://github.com/mumble-voip/mumble/releases/download/v${VERSION}/mumble-${VERSION}.tar.gz -o /tmp/mumble.tar.gz && \
|
|
|
|
tar -zxf /tmp/mumble.tar.gz --strip-components=1 -C /tmp/murmur
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk add -q --no-cache --no-progress boost-dev build-base cmake libcap-dev protobuf-dev qt5-qtbase-dev
|
|
|
|
|
|
|
|
RUN \
|
|
|
|
cd /tmp/murmur && \
|
|
|
|
mkdir build && \
|
|
|
|
cd build && \
|
|
|
|
# static build is currently unavailable
|
2023-04-01 20:58:53 +00:00
|
|
|
# see https://github.com/mumble-voip/mumble/issues/5693#issuecomment-1132069719
|
2022-01-20 00:35:11 +00:00
|
|
|
# -Dstatic=ON
|
|
|
|
cmake -Dclient=OFF -Ddbus=OFF -Dice=OFF -Dzeroconf=OFF .. && \
|
|
|
|
make -j $(nproc)
|
|
|
|
|
2022-01-20 01:16:21 +00:00
|
|
|
FROM alpine:3
|
2022-01-20 00:35:11 +00:00
|
|
|
|
|
|
|
RUN \
|
|
|
|
apk update -q --no-cache && \
|
|
|
|
apk add -q --no-cache libcap libcrypto1.1 libgcc libprotobuf libssl1.1 libstdc++ musl qt5-qtbase qt5-qtbase-sqlite \
|
|
|
|
shadow tzdata && \
|
|
|
|
mkdir -p /ssl && \
|
|
|
|
mkdir -p /config && \
|
|
|
|
mkdir -p /data
|
|
|
|
|
|
|
|
COPY --from=builder /tmp/murmur/build/mumble-server /bin/mumble-server
|
2018-10-06 15:25:29 +00:00
|
|
|
|
|
|
|
EXPOSE 64738/tcp 64738/udp
|
|
|
|
|
|
|
|
VOLUME ["/config", "/data", "/ssl"]
|
|
|
|
|
2022-01-20 00:35:11 +00:00
|
|
|
ENTRYPOINT ["/bin/mumble-server", "-ini", "/config/murmur.ini", "-v", "-fg"]
|