-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
68 lines (61 loc) · 1.94 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#ARG BUILD_FROM
ARG BUILD_FROM=hassioaddons/base:5.0.1
FROM $BUILD_FROM
# Add env
ENV LANG C.UTF-8
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Copy root filesystem
COPY rootfs /
# Setup base
RUN \
apk add --no-cache --virtual .build-dependencies \
live-media-dev \
git \
g++ \
make \
\
&& apk add --no-cache \
live-media-utils \
\
&& cd /tmp \
&& git clone https://github.com/rgaufman/live555.git \
&& cd live555 \
\
&& sed -i -e 's/proxyStream\-\%d/stream%02d/g' ./proxyServer/live555ProxyServer.cpp \
&& sed -i -e "s/proxyStream/stream/g" ./proxyServer/live555ProxyServer.cpp \
\
&& ./genMakefiles linux \
&& make -j4 \
\
&& cp proxyServer/live555ProxyServer /usr/local/bin/ \
\
&& rm -rf /tmp/* \
&& apk del --purge .build-dependencies
## Copy data
#COPY run.sh /
#RUN chmod a+x /run.sh
#
#CMD [ "/run.sh" ]
# Build arugments
ARG BUILD_ARCH
ARG BUILD_DATE
ARG BUILD_REF
ARG BUILD_VERSION
# Labels
LABEL \
io.hass.name="Live555 RTSP Proxy Server" \
io.hass.description="Live555 RTSP Proxy Server, helps to do not overload cameras by multiple stream clients" \
io.hass.arch="${BUILD_ARCH}" \
io.hass.type="addon" \
io.hass.version=${BUILD_VERSION} \
maintainer="Alex Savin <alex@smarthouse.site>" \
org.label-schema.description="Live555 RTSP Proxy Server, helps to do not overload cameras by multiple streams" \
org.label-schema.build-date=${BUILD_DATE} \
org.label-schema.name="Live555 RTSP Proxy Server" \
org.label-schema.schema-version="1.0" \
org.label-schema.url="https://github.com/alex-savin/hassio-addons/tree/master/live555" \
org.label-schema.usage="https://github.com/alex-savin/hassio-addons/live555/tree/master/README.md" \
org.label-schema.vcs-ref=${BUILD_REF} \
org.label-schema.vcs-url="https://github.com/alex-savin/hassio-addons/tree/master/live555" \
org.label-schema.vendor="SmartHouse's Hass.io Add-ons"