2017-05-25 08:06:37 +01:00
|
|
|
FROM lsiobase/alpine.python:3.6
|
2016-07-04 12:47:42 +01:00
|
|
|
MAINTAINER smdion <me@seandion.com> ,sparklyballs
|
2015-07-30 10:27:41 -05:00
|
|
|
|
2017-05-03 16:28:57 +01:00
|
|
|
# set version label
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VERSION
|
|
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
2016-08-28 00:07:55 +01:00
|
|
|
|
2017-05-03 16:28:57 +01:00
|
|
|
# install build packages
|
2016-08-28 00:07:55 +01:00
|
|
|
RUN \
|
|
|
|
apk add --no-cache --virtual=build-dependencies \
|
2017-05-03 16:28:57 +01:00
|
|
|
g++ \
|
2016-08-28 00:07:55 +01:00
|
|
|
gcc \
|
|
|
|
make && \
|
|
|
|
|
2017-05-03 16:28:57 +01:00
|
|
|
# install runtime packages
|
|
|
|
apk add --no-cache \
|
|
|
|
ffmpeg \
|
|
|
|
mc && \
|
|
|
|
|
|
|
|
# compile shntool
|
2016-08-28 00:07:55 +01:00
|
|
|
mkdir -p \
|
|
|
|
/tmp/shntool && \
|
|
|
|
curl -o \
|
|
|
|
/tmp/shntool-src-tar.gz -L \
|
2017-05-03 16:28:57 +01:00
|
|
|
http://shnutils.freeshell.org/shntool/dist/src/shntool-3.0.10.tar.gz && \
|
2016-08-28 00:07:55 +01:00
|
|
|
tar xf /tmp/shntool-src-tar.gz -C \
|
|
|
|
/tmp/shntool --strip-components=1 && \
|
|
|
|
cd /tmp/shntool && \
|
|
|
|
./configure \
|
|
|
|
--infodir=/usr/share/info \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc && \
|
|
|
|
make && \
|
|
|
|
make install && \
|
|
|
|
|
2017-05-03 16:28:57 +01:00
|
|
|
# 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
|
|
|
|
2017-05-03 16:28:57 +01:00
|
|
|
# ports and volumes
|
2015-07-30 18:22:56 +02:00
|
|
|
EXPOSE 8181
|
2016-08-08 14:10:57 +01:00
|
|
|
VOLUME /config /downloads /music
|