Files
airsonic-custom/install/docker/Dockerfile
T
Yahor Berdnikau 61e55dbbea Fix NPE at java FontConfiguration when running in docker container.
Base image Alpine-JRE8 doesn't install as dependency fontconfig and
some font. Added them to buildsteps.

Signed-off-by: Yahor Berdnikau <egorr.berd@gmail.com>
2017-11-18 19:07:33 +01:00

32 lines
703 B
Docker

FROM alpine:3.6
LABEL description="Airsonic is a free, web-based media streamer, providing ubiquitious access to your music." \
url="https://github.com/airsonic/airsonic"
ENV AIRSONIC_PORT=4040 AIRSONIC_DIR=/airsonic CONTEXT_PATH=/
WORKDIR $AIRSONIC_DIR
RUN apk --no-cache add \
ffmpeg \
lame \
bash \
libressl \
fontconfig \
ttf-dejavu \
ca-certificates \
tini \
openjdk8-jre
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
COPY target/dependency/airsonic-main.war airsonic.war
EXPOSE $AIRSONIC_PORT
VOLUME $AIRSONIC_DIR/data $AIRSONIC_DIR/music $AIRSONIC_DIR/playlists $AIRSONIC_DIR/podcasts
ENTRYPOINT ["tini", "--", "run.sh"]