Add timezone setup.
This commit is contained in:
parent
e36184e0cc
commit
4f782d1103
11
Dockerfile
11
Dockerfile
@ -1,13 +1,15 @@
|
|||||||
FROM jeanblanchard/tomcat:8
|
FROM jeanblanchard/tomcat:8
|
||||||
MAINTAINER Markus Birth <markus@birth-online.de>
|
MAINTAINER Markus Birth <markus@birth-online.de>
|
||||||
|
|
||||||
ENV SUBSONIC_VERSION 6.0
|
ENV SUBSONIC_VERSION="6.0" LC_ALL="C.UTF-8" LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" TZ="Europe/Berlin"
|
||||||
|
|
||||||
LABEL version="$SUBSONIC_VERSION"
|
LABEL version="$SUBSONIC_VERSION"
|
||||||
LABEL description="Subsonic media streamer"
|
LABEL description="Subsonic media streamer"
|
||||||
|
|
||||||
RUN apk upgrade -U \
|
RUN apk upgrade -U \
|
||||||
&& apk add ca-certificates ffmpeg lame \
|
&& apk add ca-certificates ffmpeg lame tzdata \
|
||||||
|
&& setup-timezone -z ${TZ} \
|
||||||
|
&& apk del tzdata \
|
||||||
&& rm -rf /var/cache/* \
|
&& rm -rf /var/cache/* \
|
||||||
&& mkdir -p /data/transcode /music/ /playlists/ /podcasts/ \
|
&& mkdir -p /data/transcode /music/ /playlists/ /podcasts/ \
|
||||||
&& ln -s /usr/bin/lame /data/transcode/lame \
|
&& ln -s /usr/bin/lame /data/transcode/lame \
|
||||||
@ -21,9 +23,6 @@ RUN apk upgrade -U \
|
|||||||
ADD server.xml ${CATALINA_HOME}/conf/
|
ADD server.xml ${CATALINA_HOME}/conf/
|
||||||
ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/data -Dsubsonic.defaultMusicFolder=/music/ -Dsubsonic.defaultPodcastFolder=/podcasts/ -Dsubsonic.defaultPlaylistFolder=/playlists/"
|
ENV JAVA_OPTS="-Dsubsonic.contextPath=/ -Dsubsonic.home=/data -Dsubsonic.defaultMusicFolder=/music/ -Dsubsonic.defaultPodcastFolder=/podcasts/ -Dsubsonic.defaultPlaylistFolder=/playlists/"
|
||||||
|
|
||||||
VOLUME /data
|
VOLUME ["/data", "/music/", "/playlists/", "/podcasts/"]
|
||||||
VOLUME /music/
|
|
||||||
VOLUME /playlists/
|
|
||||||
VOLUME /podcasts/
|
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
@ -5,6 +5,9 @@ Docker (http://docker.io) image for the Subsonic media streamer.
|
|||||||
## Noteworthy
|
## Noteworthy
|
||||||
|
|
||||||
* Subsonic 6.0 (http://www.subsonic.org)
|
* Subsonic 6.0 (http://www.subsonic.org)
|
||||||
|
* uses jeanblanchard/docker-tomcat with Alpine Linux
|
||||||
|
* compiled to a 266 MB image instead of 484 MB
|
||||||
|
|
||||||
|
|
||||||
## Build your own image
|
## Build your own image
|
||||||
|
|
||||||
@ -17,11 +20,11 @@ $ docker build -t <your-name>/docker-subsonic .
|
|||||||
A current image is available as a trusted build from the Docker index:
|
A current image is available as a trusted build from the Docker index:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ docker pull cyrilix/subsonic
|
$ docker pull mbirth/subsonic
|
||||||
```
|
```
|
||||||
|
|
||||||
The repository page is at
|
The repository page is at
|
||||||
https://index.docker.io/u/cyrilix/subsonic/
|
https://hub.docker.com/r/mbirth/subsonic/
|
||||||
|
|
||||||
|
|
||||||
## Run a container with this image
|
## Run a container with this image
|
||||||
@ -34,5 +37,3 @@ $ docker run \
|
|||||||
<your-name>/subsonic
|
<your-name>/subsonic
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user