subsonic: better init

This commit is contained in:
Wonderfall
2016-09-17 01:43:22 +02:00
parent e6e161e4f7
commit d70b0c8de7
2 changed files with 11 additions and 10 deletions

View File

@ -2,24 +2,29 @@ FROM alpine:3.4
MAINTAINER Wonderfall <wonderfall@schrodinger.io>
ARG VERSION=6.0
ENV GID=991 UID=991
WORKDIR /subsonic
RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories \
RUN echo "@community https://nl.alpinelinux.org/alpine/v3.4/community" >> /etc/apk/repositories \
&& apk -U add \
ffmpeg \
openjdk8-jre@commuedge \
tini@commuedge \
su-exec \
openjdk8-jre@community \
tini@community \
&& wget -qO- http://subsonic.org/download/subsonic-${VERSION}-standalone.tar.gz | tar zxf - \
&& rm -f /var/cache/apk/*
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 4040
VOLUME /data /musics /playlists /podcasts
LABEL description "Open source media streamer" \
subsonic "Subsonic v$VERSION"
CMD ["/sbin/tini","--","run.sh"]
CMD ["run.sh"]