2024-05-21 23:07:49 +00:00
|
|
|
FROM r.batts.cloud/debian:bookworm as extract
|
|
|
|
COPY jre-8u411-linux-x64.tar.gz /
|
|
|
|
RUN mkdir -p /usr/java &&\
|
|
|
|
tar -C /usr/java -xvf jre-8u411-linux-x64.tar.gz
|
|
|
|
|
|
|
|
FROM r.batts.cloud/debian:bookworm
|
2021-09-04 17:20:28 +00:00
|
|
|
ENV SUBSONIC_VERSION 6.1.6
|
2024-05-21 23:07:49 +00:00
|
|
|
ENV JAVA_HOME /usr/java/jre1.8.0_411
|
|
|
|
ENV PATH $JAVA_HOME/bin:$PATH
|
2015-05-14 21:37:21 +00:00
|
|
|
LABEL description="Subsonic media streamer"
|
2018-04-04 23:49:08 +00:00
|
|
|
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
|
|
|
|
|
2024-05-21 23:07:49 +00:00
|
|
|
RUN apt update &&\
|
|
|
|
apt -y dist-upgrade &&\
|
|
|
|
apt -y install --no-install-recommends ffmpeg lame &&\
|
|
|
|
apt clean -y &&\
|
|
|
|
rm -rf /var/lib/apt/lists/* &&\
|
2021-09-04 17:20:28 +00:00
|
|
|
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 &&\
|
2024-05-21 23:07:49 +00:00
|
|
|
curl -o subsonic.tar.gz -SL "https://sourceforge.net/projects/subsonic/files/subsonic/$SUBSONIC_VERSION/subsonic-$SUBSONIC_VERSION-standalone.tar.gz/download" &&\
|
2018-04-04 23:49:08 +00:00
|
|
|
mkdir -p /opt/subsonic &&\
|
|
|
|
tar -C /opt/subsonic -xf subsonic.tar.gz &&\
|
|
|
|
rm /subsonic.tar.gz
|
2024-05-21 23:07:49 +00:00
|
|
|
COPY --from=extract /usr/java/jre1.8.0_411 /usr/java/jre1.8.0_411
|
2018-04-04 23:49:08 +00:00
|
|
|
EXPOSE 4040
|
|
|
|
EXPOSE 4043
|
2015-05-14 16:10:49 +00:00
|
|
|
VOLUME /opt/data
|
|
|
|
VOLUME /opt/music/
|
2015-05-30 12:09:43 +00:00
|
|
|
VOLUME /opt/playlist/
|
|
|
|
VOLUME /opt/podcast/
|
2018-04-04 23:49:08 +00:00
|
|
|
ENV SUBSONIC_HOME /opt/data
|
|
|
|
ENV SUBSONIC_PORT 4040
|
2024-05-22 00:42:52 +00:00
|
|
|
ENV SUBSONIC_HTTPS_PORT 0
|
|
|
|
ENV SUBSONIC_MAX_MEMORY 250
|
2018-04-04 23:49:08 +00:00
|
|
|
ENV SUBSONIC_DEFAULT_MUSIC_FOLDER /opt/music
|
|
|
|
ENV SUBSONIC_DEFAULT_PODCAST_FOLDER /opt/podcast
|
|
|
|
ENV SUBSONIC_DEFAULT_PLAYLIST_FOLDER /opt/playlist
|
2024-05-22 00:42:52 +00:00
|
|
|
ENV HOME /opt/data
|
2018-04-04 23:49:08 +00:00
|
|
|
CMD /opt/subsonic/subsonic.sh && tail -f /opt/data/subsonic_sh.log
|