-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (30 loc) · 1.02 KB
/
Dockerfile
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
# hadolint ignore=DL3007
FROM bellsoft/liberica-openjdk-alpine:latest
LABEL maintainer="nVentiveUX"
ENV BUBBLE_APP_DIR=/opt/bubbleupnpserver \
BUBBLE_USER=bubble
# hadolint ignore=DL3018
RUN set -eux; \
apk update && apk add --no-cache --update \
ca-certificates \
ffmpeg \
iptables \
nss \
sox \
unzip \
wget;
RUN set -eux; \
addgroup -g 1000 -S ${BUBBLE_USER}; \
adduser -u 1000 -D -G ${BUBBLE_USER} ${BUBBLE_USER};
RUN set -eux; \
mkdir -pv ${BUBBLE_APP_DIR}; \
wget -q "http://www.bubblesoftapps.com/bubbleupnpserver/BubbleUPnPServer-distrib.zip" -O ${BUBBLE_APP_DIR}/bubbleupnpserver.zip; \
unzip ${BUBBLE_APP_DIR}/bubbleupnpserver.zip -d ${BUBBLE_APP_DIR}; \
chown -R ${BUBBLE_USER}:${BUBBLE_USER} ${BUBBLE_APP_DIR}; \
chmod +x ${BUBBLE_APP_DIR}/launch.sh; \
rm ${BUBBLE_APP_DIR}/bubbleupnpserver.zip;
USER ${BUBBLE_USER}
WORKDIR ${BUBBLE_APP_DIR}
EXPOSE 58050/tcp 58051/tcp 1900/udp
HEALTHCHECK CMD wget -q --method=HEAD http://127.0.0.1:58050 || exit 1
ENTRYPOINT ["./launch.sh"]