Skip to content

Commit

Permalink
Merge pull request linuxserver#19 from linuxserver/fix_26.1_build_use…
Browse files Browse the repository at this point in the history
…_buildstage

use buildstage and update dependencies
  • Loading branch information
sparklyballs authored Jun 14, 2018
2 parents ca5fd63 + 7376179 commit 7dcb564
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 39 deletions.
80 changes: 41 additions & 39 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
FROM lsiobase/alpine:3.7

# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
FROM lsiobase/alpine:3.7 as buildstage
############## build stage ##############

RUN \
echo "**** install build packages ****" && \
Expand Down Expand Up @@ -35,8 +30,10 @@ RUN \
libsodium-dev \
libtool \
libunistring-dev \
libwebsockets-dev \
make \
openjdk8-jre-base \
openssl-dev \
protobuf-c-dev \
sqlite-dev \
taglib-dev \
Expand All @@ -45,26 +42,6 @@ RUN \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
libantlr3c-dev \
mxml-dev && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
avahi \
confuse \
dbus \
ffmpeg \
json-c \
libcurl \
libevent \
libgcrypt \
libplist \
libsodium \
libunistring \
protobuf-c \
sqlite \
sqlite-libs && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
libantlr3c \
mxml && \
echo "**** make antlr wrapper and compile forked-daapd ****" && \
mkdir -p \
/tmp/source/forked-daapd && \
Expand All @@ -85,10 +62,6 @@ RUN \
/tmp/source/forked-daapd --strip-components=1 && \
export PATH="/tmp/source:$PATH" && \
cd /tmp/source/forked-daapd && \
echo "**** fetch updated configure file if version equals 26.0 ****" && \
if [ $DAAPD_VER==26.0 ]; then \
curl -o /tmp/source/forked-daapd/configure.ac -L \
"https://raw.githubusercontent.com/ejurgensen/forked-daapd/5e13bac8672bd866d43e1988ff8aa831b704d9b4/configure.ac" ; fi && \
autoreconf -i -v && \
./configure \
--build=$CBUILD \
Expand All @@ -104,15 +77,44 @@ RUN \
--prefix=/app \
--sysconfdir=/etc && \
make && \
make install && \
cp /etc/forked-daapd.conf /etc/forked-daapd.conf.orig && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
make install

############## runtime stage ##############
FROM lsiobase/alpine:3.7

# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"

RUN \
echo "**** install runtime packages ****" && \
apk add --no-cache \
avahi \
confuse \
dbus \
ffmpeg \
json-c \
libcurl \
libevent \
libgcrypt \
libplist \
libsodium \
libunistring \
libwebsockets \
openssl \
protobuf-c \
sqlite \
sqlite-libs && \
apk add --no-cache \
--repository http://nl.alpinelinux.org/alpine/edge/testing \
libantlr3c \
mxml

# copy local files
# copy buildstage and local files
COPY --from=buildstage /etc/forked-daapd.conf /etc/forked-daapd.conf.orig
COPY --from=buildstage /app/ app/
COPY root/ /

# ports and volumes
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ For further setup options of remotes etc, check out the daapd website, [Forked-d

## Versions

+ **09.06.18:** Use buildstage and update dependencies.
+ **05.03.18:** Use updated configure ac and disable avcodecsend to hopefully mitigate crashes with V26.
+ **25.02.18:** Query version before pull and build latest release.
+ **03.01.18:** Deprecate cpu_core routine lack of scaling.
Expand Down

0 comments on commit 7dcb564

Please sign in to comment.