-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
36 lines (27 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
FROM ubuntu:latest
LABEL version="1.1" maintainer="John Stucklen <[email protected]>"
ENV LC_ALL en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV SUBSONIC_UID 1000
ENV SUBSONIC_GID 1000
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y locales ffmpeg openjdk-8-jre-headless nano flac lame mikmod timidity wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen \
&& localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
RUN mkdir -p /opt/subsonic \
&& wget --no-check-certificate https://s3-eu-west-1.amazonaws.com/subsonic-public/download/subsonic-6.1.6-standalone.tar.gz \
&& tar xvzf subsonic-6.1.6-standalone.tar.gz -C /opt/subsonic \
&& rm -rf subsonic-6.1.6-standalone.tar.gz
COPY mikmod_stdout /opt/subsonic
COPY timidity_stdout /opt/subsonic
COPY entrypoint.sh /opt/subsonic/entrypoint.sh
WORKDIR /opt/subsonic
VOLUME [ "/var/music", "/var/playlists", "/var/subsonic" ]
EXPOSE 4040/tcp
ENTRYPOINT [ "/opt/subsonic/entrypoint.sh" ]