Save podcasts and playlists in dedicated directories
This commit is contained in:
parent
df60ac4ae0
commit
aba0d1302f
1 changed files with 6 additions and 4 deletions
10
Dockerfile
10
Dockerfile
|
@ -11,8 +11,8 @@ LABEL description="Subsonic media streamer"
|
||||||
RUN apt-get update &&\
|
RUN apt-get update &&\
|
||||||
apt-get -y install libav-tools lame &&\
|
apt-get -y install libav-tools lame &&\
|
||||||
adduser --system --home /opt/subsonic subsonic &&\
|
adduser --system --home /opt/subsonic subsonic &&\
|
||||||
mkdir -p /opt/data/transcode /opt/music/ &&\
|
mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\
|
||||||
chown -R subsonic /opt/data &&\
|
chown -R subsonic /opt/data /opt/playlist/ /opt/podcast/ &&\
|
||||||
ln -s /usr/bin/lame /opt/data/transcode/lame &&\
|
ln -s /usr/bin/lame /opt/data/transcode/lame &&\
|
||||||
ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\
|
ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\
|
||||||
wget "http://downloads.sourceforge.net/project/subsonic/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-$SUBSONIC_VERSION-standalone.tar.gz&ts=1431096340&use_mirror=garr" \
|
wget "http://downloads.sourceforge.net/project/subsonic/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz?r=http%3A%2F%2Fwww.subsonic.org%2Fpages%2Fdownload2.jsp%3Ftarget%3Dsubsonic-$SUBSONIC_VERSION-standalone.tar.gz&ts=1431096340&use_mirror=garr" \
|
||||||
|
@ -20,6 +20,8 @@ RUN apt-get update &&\
|
||||||
|
|
||||||
VOLUME /opt/data
|
VOLUME /opt/data
|
||||||
VOLUME /opt/music/
|
VOLUME /opt/music/
|
||||||
|
VOLUME /opt/playlist/
|
||||||
|
VOLUME /opt/podcast/
|
||||||
|
|
||||||
EXPOSE $PORT
|
EXPOSE $PORT
|
||||||
WORKDIR /opt/subsonic
|
WORKDIR /opt/subsonic
|
||||||
|
@ -30,8 +32,8 @@ CMD java -Xmx100m \
|
||||||
-Dsubsonic.port=$PORT \
|
-Dsubsonic.port=$PORT \
|
||||||
-Dsubsonic.contextPath=$CONTEXT_PATH \
|
-Dsubsonic.contextPath=$CONTEXT_PATH \
|
||||||
-Dsubsonic.defaultMusicFolder=/opt/music/ \
|
-Dsubsonic.defaultMusicFolder=/opt/music/ \
|
||||||
-Dsubsonic.defaultPodcastFolder=/opt/music/ \
|
-Dsubsonic.defaultPodcastFolder=/opt/podcast/ \
|
||||||
-Dsubsonic.defaultPlaylistFolder=/opt/music/ \
|
-Dsubsonic.defaultPlaylistFolder=/opt/playlist/ \
|
||||||
-Djava.awt.headless=true \
|
-Djava.awt.headless=true \
|
||||||
-verbose:gc \
|
-verbose:gc \
|
||||||
-jar /opt/subsonic/subsonic-booter-jar-with-dependencies.jar
|
-jar /opt/subsonic/subsonic-booter-jar-with-dependencies.jar
|
||||||
|
|
Loading…
Reference in a new issue