From 4476b21fc2165d1dc19a115de9da80691e1fa2c5 Mon Sep 17 00:00:00 2001 From: Thomas Dalton Date: Thu, 27 Aug 2026 19:22:27 +0100 Subject: [PATCH] feat: add TwoLAME versioning and changed arg name for MPD --- Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 389e90b..1552b95 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,19 +2,20 @@ FROM alpine:latest AS builder LABEL maintainer="Thomas Dalton " LABEL org.opencontainers.image.source="https://git.tabbytv.com/tom/docker-mpd" -ARG version="v0.23.16" +ARG MPD_VERSION="v0.23.16" +ARG TWOLAME_VERSION="0.4.0" RUN set -xe \ && apk add --no-cache alpine-sdk cmake alsa-lib-dev avahi-dev boost-dev curl-dev expat-dev faad2-dev ffmpeg-dev flac-dev fmt-dev glib-dev gtest-dev icu-dev jack-dev lame-dev libao-dev libcap-utils libcdio-paranoia-dev libid3tag-dev libmad-dev libmodplug-dev libmpdclient-dev libogg-dev libsamplerate-dev libshout-dev libvorbis-dev meson opus-dev pipewire-dev pulseaudio-dev py3-attrs py3-sphinx soxr-dev wavpack-dev -ADD https://github.com/njh/twolame/releases/download/0.4.0/twolame-0.4.0.tar.gz /tmp/twolame.tar.gz +ADD https://github.com/njh/twolame/releases/download/${TWOLAME_VERSION}/twolame-${TWOLAME_VERSION}.tar.gz /tmp/twolame.tar.gz RUN tar -xzf /tmp/twolame.tar.gz -C /tmp -WORKDIR /tmp/twolame-0.4.0 +WORKDIR /tmp/twolame-${TWOLAME_VERSION} RUN ./configure --prefix=/tmp/build/twolame RUN make -j${nproc} RUN make install -ADD https://github.com/MusicPlayerDaemon/MPD.git#${version} /tmp/mpd +ADD https://github.com/MusicPlayerDaemon/MPD.git#${MPD_VERSION} /tmp/mpd WORKDIR /tmp/mpd RUN meson setup . output --buildtype=release -Db_lto=true -Dtwolame=enabled -Dsysconfdir='/usr/local/etc' RUN meson compile -C output