|
1 | | -FROM ghcr.io/linuxserver/baseimage-alpine:3.17 as buildstage |
| 1 | +FROM ghcr.io/linuxserver/baseimage-alpine:3.18 as buildstage |
2 | 2 | ############## build stage ############## |
3 | 3 |
|
4 | 4 | ARG DAAPD_RELEASE |
5 | | -ARG LIBSPOTIFY_VERSION=12.1.51 |
6 | | -ARG ARCH=x86_64 |
7 | 5 |
|
8 | 6 | RUN \ |
9 | 7 | echo "**** install build packages ****" && \ |
@@ -41,40 +39,13 @@ RUN \ |
41 | 39 | protobuf-c-dev \ |
42 | 40 | sqlite-dev \ |
43 | 41 | taglib-dev && \ |
44 | | - echo "**** make antlr wrapper ****" && \ |
45 | 42 | mkdir -p \ |
46 | 43 | /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" && \ |
66 | 44 | echo "**** compile owntone-server ****" && \ |
67 | 45 | if [ -z ${DAAPD_RELEASE+x} ]; then \ |
68 | 46 | DAAPD_RELEASE=$(curl -sX GET "https://api.github.com/repos/owntone/owntone-server/releases/latest" \ |
69 | 47 | | awk '/tag_name/{print $4;exit}' FS='[""]'); \ |
70 | 48 | 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" && \ |
78 | 49 | curl -o \ |
79 | 50 | /tmp/source/owntone.tar.gz -L \ |
80 | 51 | "https://github.com/owntone/owntone-server/archive/${DAAPD_RELEASE}.tar.gz" && \ |
|
86 | 57 | ./configure \ |
87 | 58 | --build=$CBUILD \ |
88 | 59 | --enable-chromecast \ |
89 | | - --enable-itunes \ |
90 | 60 | --enable-lastfm \ |
91 | 61 | --enable-mpd \ |
92 | | - --enable-spotify \ |
93 | 62 | --host=$CHOST \ |
94 | 63 | --infodir=/usr/share/info \ |
95 | 64 | --localstatedir=/var \ |
|
101 | 70 | mv /tmp/daapd-build/etc/owntone.conf /tmp/daapd-build/etc/owntone.conf.orig && \ |
102 | 71 | rm -rf /tmp/daapd-build/var |
103 | 72 | ############## runtime stage ############## |
104 | | -FROM ghcr.io/linuxserver/baseimage-alpine:3.17 |
| 73 | +FROM ghcr.io/linuxserver/baseimage-alpine:3.18 |
105 | 74 |
|
106 | 75 | # set version label |
107 | 76 | ARG BUILD_DATE |
@@ -134,8 +103,6 @@ RUN \ |
134 | 103 |
|
135 | 104 | # copy buildstage and local files |
136 | 105 | COPY --from=buildstage /tmp/daapd-build/ / |
137 | | -COPY --from=buildstage /tmp/antlr3c-build/ / |
138 | | -COPY --from=buildstage /tmp/libspotify-build/ / |
139 | 106 | COPY root/ / |
140 | 107 |
|
141 | 108 | # ports and volumes |
|
0 commit comments