Skip to content
This repository was archived by the owner on Jul 10, 2025. It is now read-only.

Commit 12d1ebf

Browse files
authored
Merge pull request #83 from linuxserver/3.18
2 parents 73ecaf4 + eb99d09 commit 12d1ebf

4 files changed

Lines changed: 6 additions & 60 deletions

File tree

Dockerfile

Lines changed: 2 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage
1+
FROM ghcr.io/linuxserver/baseimage-alpine:3.18 as buildstage
22
############## build stage ##############
33

44
ARG DAAPD_RELEASE
5-
ARG LIBSPOTIFY_VERSION=12.1.51
6-
ARG ARCH=x86_64
75

86
RUN \
97
echo "**** install build packages ****" && \
@@ -41,40 +39,13 @@ RUN \
4139
protobuf-c-dev \
4240
sqlite-dev \
4341
taglib-dev && \
44-
echo "**** make antlr wrapper ****" && \
4542
mkdir -p \
4643
/tmp/source/owntone && \
47-
echo \
48-
"#!/bin/bash" > /tmp/source/antlr3 && \
49-
echo \
50-
"exec java -cp /tmp/source/antlr-3.4-complete.jar org.antlr.Tool \"\$@\"" >> /tmp/source/antlr3 && \
51-
chmod a+x /tmp/source/antlr3 && \
52-
curl -o \
53-
/tmp/source/antlr-3.4-complete.jar -L \
54-
http://www.antlr3.org/download/antlr-3.4-complete.jar && \
55-
echo "**** compile and install antlr3c ****" && \
56-
curl -o \
57-
/tmp/libantlr3c-3.4.tar.gz -L \
58-
https://github.com/antlr/website-antlr3/raw/gh-pages/download/C/libantlr3c-3.4.tar.gz && \
59-
tar xf /tmp/libantlr3c-3.4.tar.gz -C /tmp && \
60-
cd /tmp/libantlr3c-3.4 && \
61-
./configure --enable-64bit --prefix=/usr && \
62-
make && \
63-
make DESTDIR=/tmp/antlr3c-build install && \
64-
export LDFLAGS="-L/tmp/antlr3c-build/usr/lib" && \
65-
export CFLAGS="-I/tmp/antlr3c-build/usr/include" && \
6644
echo "**** compile owntone-server ****" && \
6745
if [ -z ${DAAPD_RELEASE+x} ]; then \
6846
DAAPD_RELEASE=$(curl -sX GET "https://api.github.com/repos/owntone/owntone-server/releases/latest" \
6947
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
7048
fi && \
71-
curl -L https://github.com/mopidy/libspotify-archive/blob/master/libspotify-${LIBSPOTIFY_VERSION}-Linux-${ARCH}-release.tar.gz?raw=true | tar -xzf- -C /tmp/source/ && \
72-
mv /tmp/source/libspotify* /tmp/source/libspotify && \
73-
sed -i 's/ldconfig//' /tmp/source/libspotify/Makefile && \
74-
make -C /tmp/source/libspotify prefix=/tmp/libspotify-build install && \
75-
rm -rf /tmp/source/libspotify && \
76-
export LIBSPOTIFY_CFLAGS="-I/tmp/libspotify-build/include" && \
77-
export LIBSPOTIFY_LIBS="/tmp/libspotify-build/lib/libspotify.so" && \
7849
curl -o \
7950
/tmp/source/owntone.tar.gz -L \
8051
"https://github.com/owntone/owntone-server/archive/${DAAPD_RELEASE}.tar.gz" && \
@@ -86,10 +57,8 @@ RUN \
8657
./configure \
8758
--build=$CBUILD \
8859
--enable-chromecast \
89-
--enable-itunes \
9060
--enable-lastfm \
9161
--enable-mpd \
92-
--enable-spotify \
9362
--host=$CHOST \
9463
--infodir=/usr/share/info \
9564
--localstatedir=/var \
@@ -101,7 +70,7 @@ RUN \
10170
mv /tmp/daapd-build/etc/owntone.conf /tmp/daapd-build/etc/owntone.conf.orig && \
10271
rm -rf /tmp/daapd-build/var
10372
############## runtime stage ##############
104-
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
73+
FROM ghcr.io/linuxserver/baseimage-alpine:3.18
10574

10675
# set version label
10776
ARG BUILD_DATE
@@ -134,8 +103,6 @@ RUN \
134103

135104
# copy buildstage and local files
136105
COPY --from=buildstage /tmp/daapd-build/ /
137-
COPY --from=buildstage /tmp/antlr3c-build/ /
138-
COPY --from=buildstage /tmp/libspotify-build/ /
139106
COPY root/ /
140107

141108
# ports and volumes

Dockerfile.aarch64

Lines changed: 2 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17 as buildstage
1+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.18 as buildstage
22
############## build stage ##############
33

44
ARG DAAPD_RELEASE
@@ -39,28 +39,8 @@ RUN \
3939
protobuf-c-dev \
4040
sqlite-dev \
4141
taglib-dev && \
42-
echo "**** make antlr wrapper ****" && \
4342
mkdir -p \
4443
/tmp/source/owntone && \
45-
echo \
46-
"#!/bin/bash" > /tmp/source/antlr3 && \
47-
echo \
48-
"exec java -cp /tmp/source/antlr-3.4-complete.jar org.antlr.Tool \"\$@\"" >> /tmp/source/antlr3 && \
49-
chmod a+x /tmp/source/antlr3 && \
50-
curl -o \
51-
/tmp/source/antlr-3.4-complete.jar -L \
52-
http://www.antlr3.org/download/antlr-3.4-complete.jar && \
53-
echo "**** compile and install antlr3c ****" && \
54-
curl -o \
55-
/tmp/libantlr3c-3.4.tar.gz -L \
56-
https://github.com/antlr/website-antlr3/raw/gh-pages/download/C/libantlr3c-3.4.tar.gz && \
57-
tar xf /tmp/libantlr3c-3.4.tar.gz -C /tmp && \
58-
cd /tmp/libantlr3c-3.4 && \
59-
./configure --build arm-unknown-linux-gnueabi --disable-abiflags --disable-antlrdebug --enable-64bit --prefix=/usr && \
60-
make && \
61-
make DESTDIR=/tmp/antlr3c-build install && \
62-
export LDFLAGS="-L/tmp/antlr3c-build/usr/lib" && \
63-
export CFLAGS="-I/tmp/antlr3c-build/usr/include" && \
6444
echo "**** compile owntone-server ****" && \
6545
if [ -z ${DAAPD_RELEASE+x} ]; then \
6646
DAAPD_RELEASE=$(curl -sX GET "https://api.github.com/repos/owntone/owntone-server/releases/latest" \
@@ -76,9 +56,7 @@ RUN \
7656
autoreconf -i -v && \
7757
./configure \
7858
--build=$CBUILD \
79-
--disable-avcodecsend \
8059
--enable-chromecast \
81-
--enable-itunes \
8260
--enable-lastfm \
8361
--enable-mpd \
8462
--host=$CHOST \
@@ -92,7 +70,7 @@ RUN \
9270
mv /tmp/daapd-build/etc/owntone.conf /tmp/daapd-build/etc/owntone.conf.orig && \
9371
rm -rf /tmp/daapd-build/var
9472
############## runtime stage ##############
95-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.17
73+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.18
9674

9775
# set version label
9876
ARG BUILD_DATE
@@ -125,7 +103,6 @@ RUN \
125103

126104
# copy buildstage and local files
127105
COPY --from=buildstage /tmp/daapd-build/ /
128-
COPY --from=buildstage /tmp/antlr3c-build/ /
129106
COPY root/ /
130107

131108
# ports and volumes

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
240240

241241
## Versions
242242

243+
* **25.08.23:** - Rebase to Alpine 3.18, remove abandoned libspotify libs.
243244
* **05.07.23:** - Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)
244245
* **23.02.23:** - Rebase to Alpine 3.17, migrate to s6v3.
245246
* **31.05.22:** - Make sure the user has access to the audio device.

readme-vars.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ app_setup_block: |
5858
It is recommended to set the `pipe_autostart` option to `true` in your forked-daapd config.
5959
# changelog
6060
changelogs:
61+
- {date: "25.08.23:", desc: "Rebase to Alpine 3.18, remove abandoned libspotify libs."}
6162
- {date: "05.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}
6263
- {date: "23.02.23:", desc: "Rebase to Alpine 3.17, migrate to s6v3."}
6364
- {date: "31.05.22:", desc: "Make sure the user has access to the audio device."}

0 commit comments

Comments
 (0)