forked from linuxserver-archive/docker-booksonic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
60 lines (53 loc) · 1.48 KB
/
Dockerfile
File metadata and controls
60 lines (53 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
FROM lsiobase/alpine:3.7
# set version label
ARG BUILD_DATE
ARG VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="sparklyballs"
# copy prebuild files
COPY prebuilds/ /prebuilds/
# environment settings
ENV BOOKSONIC_OPT_PREFIX="subsonic"
# package settings
ARG BOOKSONIC_VER="1.1.Beta1"
ARG JETTY_VER="9.3.14.v20161028"
RUN \
echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \
curl \
tar \
openjdk8 && \
echo "**** install runtime packages ****" && \
apk add --no-cache \
ffmpeg \
flac \
lame \
ttf-dejavu \
openjdk8-jre && \
echo "**** install jetty-runner ****" && \
mkdir -p \
/tmp/jetty && \
cp /prebuilds/* /tmp/jetty/ && \
curl -o \
/tmp/jetty/"jetty-runner-$JETTY_VER".jar -L \
"https://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-runner/${JETTY_VER}/jetty-runner-{$JETTY_VER}.jar" && \
cd /tmp/jetty && \
install -m644 -D "jetty-runner-$JETTY_VER.jar" \
/usr/share/java/jetty-runner.jar && \
install -m755 -D jetty-runner /usr/bin/jetty-runner && \
echo "**** install booksonic ****" && \
mkdir -p \
/app/booksonic && \
curl -o \
/app/booksonic/booksonic.war -L \
"https://github.com/popeen/Popeens-Subsonic/releases/download/${BOOKSONIC_VER}/booksonic.war" && \
echo "**** cleanup ****" && \
apk del --purge \
build-dependencies && \
rm -rf \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 4040
VOLUME /books /config /podcasts