Initial commit

This commit is contained in:
Sebastian Hugentobler 2017-10-19 13:48:38 +02:00
commit 1355ed7fa2
8 changed files with 74 additions and 0 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM registry.gitlab.com/thallian/docker-alpine-s6:master
ENV VERSION v10.0.1
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 -fs /usr/bin/ffmpeg $AIRSONIC_DIR/data/transcode/ffmpeg
RUN ln -fs /usr/bin/lame $AIRSONIC_DIR/data/transcode/lame
RUN chmod +x $AIRSONIC_DIR/data/transcode/ffmpeg
RUN chmod +x $AIRSONIC_DIR/data/transcode/lame
ADD /rootfs /
EXPOSE 8080
VOLUME ${AIRSONIC_DIR}/data ${AIRSONIC_DIR}/music ${AIRSONIC_DIR}/playlists ${AIRSONIC_DIR}/podcasts