switch to airsonic-advanced
This commit is contained in:
parent
0fe95ddd51
commit
d3dbc7facf
40
Dockerfile
40
Dockerfile
@ -1,23 +1,41 @@
|
|||||||
|
FROM alpine:3.13 AS builder
|
||||||
|
|
||||||
|
ENV VERSION=11.0.0-SNAPSHOT.20210504201650
|
||||||
|
ENV SHA256_SUM=25e030eedcd556a48da4dc83e56bb7ee5e621744f974a2e3f0fa8201c04502dd
|
||||||
|
RUN apk add --no-cache \
|
||||||
|
openjdk11-jdk \
|
||||||
|
maven \
|
||||||
|
git
|
||||||
|
|
||||||
|
RUN git clone https://github.com/airsonic-advanced/airsonic-advanced
|
||||||
|
|
||||||
|
WORKDIR /airsonic-advanced
|
||||||
|
RUN git checkout "$VERSION"
|
||||||
|
RUN mvn package
|
||||||
|
|
||||||
|
|
||||||
FROM thallian/alpine-s6:latest
|
FROM thallian/alpine-s6:latest
|
||||||
|
|
||||||
ENV JAVA_OPTIONS -Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
|
ENV JAVA_OPTIONS=-Dfile.encoding=UTF-8 -Dsun.jnu.encoding=UTF-8
|
||||||
|
ENV AIRSONIC_DIR=/home/airsonic
|
||||||
|
|
||||||
ENV VERSION v10.6.2
|
RUN apk add --no-cache \
|
||||||
|
openjdk11-jre-headless \
|
||||||
ENV AIRSONIC_DIR /home/airsonic
|
ffmpeg \
|
||||||
RUN apk add --no-cache openjdk8-jre libressl ca-certificates ffmpeg flac opus lame
|
flac \
|
||||||
|
opus \
|
||||||
|
lame
|
||||||
|
|
||||||
RUN addgroup -g 2222 airsonic
|
RUN addgroup -g 2222 airsonic
|
||||||
RUN adduser -h ${AIRSONIC_DIR} -S -D -u 2222 -G airsonic 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
|
COPY --from=builder /airsonic-advanced/airsonic-main/target/airsonic.war "$AIRSONIC_DIR}/airsonic.war"
|
||||||
RUN chown -R airsonic:airsonic ${AIRSONIC_DIR}
|
RUN chown -R airsonic:airsonic "$AIRSONIC_DIR"
|
||||||
|
|
||||||
RUN mkdir -p $AIRSONIC_DIR/data/transcode
|
RUN mkdir -p $AIRSONIC_DIR/data/transcode
|
||||||
RUN ln -s /usr/bin/ffmpeg $AIRSONIC_DIR/data/transcode/ffmpeg
|
RUN ln -s /usr/bin/ffmpeg "$AIRSONIC_DIR/data/transcode/ffmpeg"
|
||||||
|
|
||||||
ADD /rootfs /
|
ADD /rootfs /
|
||||||
|
|
||||||
EXPOSE 8080
|
EXPOSE 8080
|
||||||
|
VOLUME "$AIRSONIC_DIR/data" "$AIRSONIC_DIR/music" "$AIRSONIC_DIR/playlists" "$AIRSONIC_DIR/podcasts"
|
||||||
VOLUME ${AIRSONIC_DIR}/data ${AIRSONIC_DIR}/music ${AIRSONIC_DIR}/playlists ${AIRSONIC_DIR}/podcasts
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
|
||||||
|
|
||||||
s6-svc -t /var/run/s6/services/murmur
|
|
@ -1,6 +1,6 @@
|
|||||||
#!/usr/bin/with-contenv sh
|
#!/usr/bin/with-contenv sh
|
||||||
|
|
||||||
cd ${AIRSONIC_DIR}
|
cd "$AIRSONIC_DIR"
|
||||||
exec s6-setuidgid airsonic java -Xmx512m \
|
exec s6-setuidgid airsonic java -Xmx512m \
|
||||||
-Dserver.host=0.0.0.0 \
|
-Dserver.host=0.0.0.0 \
|
||||||
-Dserver.port=8080 \
|
-Dserver.port=8080 \
|
||||||
|
Loading…
Reference in New Issue
Block a user