feat: add TwoLAME versioning and changed arg name for MPD

This commit is contained in:
tom
2026-08-27 19:22:27 +01:00
parent 9b8fefca0d
commit 4476b21fc2
+5 -4
View File
@@ -2,19 +2,20 @@ FROM alpine:latest AS builder
LABEL maintainer="Thomas Dalton <personal@tom-dalton.com>"
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