Refactored dockerfile

Signed-off-by: Andrew DeMaria <lostonamountain@gmail.com>
This commit is contained in:
Andrew DeMaria
2017-08-03 21:43:22 -06:00
parent 615f7eb1c4
commit e1ecc2444c
4 changed files with 28 additions and 16 deletions
+10 -8
View File
@@ -3,25 +3,27 @@ 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 UID=1001 GID=1001 AIRSONIC_PORT=4040 AIRSONIC_DIR=/airsonic
ENV AIRSONIC_PORT=4040 AIRSONIC_DIR=/airsonic
WORKDIR $AIRSONIC_DIR
COPY dockerfiles/run.sh /usr/local/bin/run.sh
COPY target/dependency/airsonic-main-6.3-SNAPSHOT.war airsonic.war
RUN apk --no-cache add \
ffmpeg \
lame \
su-exec \
bash \
libressl \
ca-certificates \
tini \
openjdk8-jre \
&& chmod +x /usr/local/bin/run.sh
openjdk8-jre
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
COPY target/dependency/airsonic-main-6.3-SNAPSHOT.war airsonic.war
EXPOSE $AIRSONIC_PORT
VOLUME $AIRSONIC_DIR/data $AIRSONIC_DIR/music $AIRSONIC_DIR/playlists $AIRSONIC_DIR/podcasts
ENTRYPOINT ["run.sh"]
ENTRYPOINT ["tini", "--", "run.sh"]