docker-subsonic/Dockerfile

31 lines
1.1 KiB
Text
Raw Normal View History

2021-09-04 17:20:28 +00:00
FROM debian:9
ENV SUBSONIC_VERSION 6.1.6
2015-05-14 21:37:21 +00:00
LABEL description="Subsonic media streamer"
LABEL version="$SUBSONIC_VERSION"
2015-05-14 21:37:21 +00:00
2024-05-21 22:30:06 +00:00
## TODO redo with https://github.com/airsonic-advanced/airsonic-advanced/releases/tag/v10.6.0
2021-09-04 17:20:28 +00:00
RUN apt-get update &&\
apt-get -y dist-upgrade &&\
apt-get -y install openjdk-8-jre-headless wget ffmpeg lame &&\
mkdir -p /opt/data/transcode /opt/music/ /opt/playlist/ /opt/podcast/ &&\
ln -s /usr/bin/lame /opt/data/transcode/lame &&\
ln -s /usr/bin/avconv /opt/data/transcode/ffmpeg &&\
wget "https://sourceforge.net/projects/subsonic/files/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz/download" -O subsonic.tar.gz --quiet &&\
mkdir -p /opt/subsonic &&\
tar -C /opt/subsonic -xf subsonic.tar.gz &&\
rm /subsonic.tar.gz
EXPOSE 4040
EXPOSE 4043
2015-05-14 16:10:49 +00:00
VOLUME /opt/data
VOLUME /opt/music/
VOLUME /opt/playlist/
VOLUME /opt/podcast/
ENV SUBSONIC_HOME /opt/data
ENV SUBSONIC_PORT 4040
ENV SUBSONIC_HTTPS_PORT 4043
ENV SUBSONIC_DEFAULT_MUSIC_FOLDER /opt/music
ENV SUBSONIC_DEFAULT_PODCAST_FOLDER /opt/podcast
ENV SUBSONIC_DEFAULT_PLAYLIST_FOLDER /opt/playlist
CMD /opt/subsonic/subsonic.sh && tail -f /opt/data/subsonic_sh.log