airsonic/Dockerfile

22 lines
723 B
Docker
Raw Normal View History

2017-10-19 11:48:38 +00:00
FROM registry.gitlab.com/thallian/docker-alpine-s6:master
2017-11-25 16:20:42 +00:00
ENV VERSION v10.1.0
2017-10-19 11:48:38 +00:00
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
2017-10-19 12:11:05 +00:00
RUN ln -s /usr/bin/ffmpeg $AIRSONIC_DIR/data/transcode/ffmpeg
2017-11-25 18:48:31 +00:00
RUN chmod +x /usr/bin/ffmpeg
2017-10-19 11:48:38 +00:00
ADD /rootfs /
EXPOSE 8080
VOLUME ${AIRSONIC_DIR}/data ${AIRSONIC_DIR}/music ${AIRSONIC_DIR}/playlists ${AIRSONIC_DIR}/podcasts