Files
hassio-addons/emby/Dockerfile
2020-11-29 18:28:42 +01:00

35 lines
904 B
Docker

ARG BUILD_FROM
# hadolint ignore=DL3006
FROM $BUILD_FROM
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# copy local files
COPY root/ /
RUN apt-get update \
\
&& apt-get install -y --no-install-recommends \
jq=1.5+dfsg-2 \
\
&& apt-get -y upgrade cifs-utils \
&& curl -J -L -o /tmp/bashio.tar.gz \
"https://github.com/hassio-addons/bashio/archive/v0.7.1.tar.gz" \
&& mkdir /tmp/bashio \
&& tar zxvf \
/tmp/bashio.tar.gz \
--strip 1 -C /tmp/bashio \
\
&& mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -fr \
/tmp/* \
/var/{cache,log}/* \
/var/lib/apt/lists/*
RUN sed -i "s|/config|/emby|g" /etc/services.d/emby/run \
&& sed -i "s|/config|/emby|g" /etc/cont-init.d/30-config
&& sed -i "s|/config|/emby|g" /etc/config/custom-cont-init.d/mount