airsonic/Dockerfile
2018-07-31 11:53:43 +00:00

24 lines
760 B
Docker

FROM registry.gitlab.com/thallian/docker-alpine-s6:master
ENV JAVA_OPTIONS -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
ENV VERSION v10.1.2
ENV AIRSONIC_DIR /home/airsonic
RUN apk add --no-cache openjdk8-jre libressl ca-certificates ffmpeg flac opus lame
RUN addgroup -g 2222 airsonic
RUN adduser -h ${AIRSONIC_DIR} -S -D -u 2222 -G airsonic airsonic
RUN wget https://github.com/airsonic/airsonic/releases/download/${VERSION}/airsonic.war -O ${AIRSONIC_DIR}/airsonic.war
RUN chown -R airsonic:airsonic ${AIRSONIC_DIR}
RUN mkdir -p $AIRSONIC_DIR/data/transcode
RUN ln -s /usr/bin/ffmpeg $AIRSONIC_DIR/data/transcode/ffmpeg
ADD /rootfs /
EXPOSE 8080
VOLUME ${AIRSONIC_DIR}/data ${AIRSONIC_DIR}/music ${AIRSONIC_DIR}/playlists ${AIRSONIC_DIR}/podcasts