docker-headphones/Dockerfile

65 lines
1.5 KiB
Text
Raw Normal View History

2018-08-17 00:05:53 +01:00
FROM lsiobase/alpine.python:3.8
2015-07-30 10:27:41 -05:00
# set version label
ARG BUILD_DATE
ARG VERSION
ARG HEADPHONES_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
2016-08-28 00:07:55 +01:00
# copy patches folder
COPY patches/ /tmp/patches/
2016-08-28 00:07:55 +01:00
RUN \
echo "**** install build packages ****" && \
2016-08-28 00:07:55 +01:00
apk add --no-cache --virtual=build-dependencies \
g++ \
2016-08-28 00:07:55 +01:00
gcc \
jq \
2016-08-28 00:07:55 +01:00
make && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
ffmpeg \
flac \
mc && \
echo "**** compile shntool *** *" && \
2016-08-28 00:07:55 +01:00
mkdir -p \
/tmp/shntool && \
2017-07-12 13:52:40 +01:00
tar xf /tmp/patches/shntool-3.0.10.tar.gz -C \
2016-08-28 00:07:55 +01:00
/tmp/shntool --strip-components=1 && \
cp /tmp/patches/config.* /tmp/shntool && \
2016-08-28 00:07:55 +01:00
cd /tmp/shntool && \
./configure \
--infodir=/usr/share/info \
--localstatedir=/var \
--mandir=/usr/share/man \
--prefix=/usr \
--sysconfdir=/etc && \
make && \
2016-08-28 00:07:55 +01:00
make install && \
echo "**** install app ****" && \
if [ -z ${HEADPHONES_COMMIT+x} ]; then \
HEADPHONES_COMMIT=$(curl -sX GET https://api.github.com/repos/rembo10/headphones/commits/master \
| jq -r '. | .sha'); \
fi && \
mkdir -p /app/headphones && \
curl -o \
/tmp/headphones.tar.gz -L \
"https://github.com/rembo10/headphones/archive/${HEADPHONES_COMMIT}.tar.gz" && \
tar xf \
/tmp/headphones.tar.gz -C \
/app/headphones --strip-components=1 && \
echo "**** cleanup ****" && \
2016-08-28 00:07:55 +01:00
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/* \
/usr/lib/*.la
2015-07-15 11:10:00 -05:00
2016-07-04 12:47:42 +01:00
# add local files
COPY root/ /
2015-07-15 11:10:00 -05:00
# ports and volumes
2015-07-30 18:22:56 +02:00
EXPOSE 8181
VOLUME /config /downloads /music