mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
47 lines
1.1 KiB
Docker
47 lines
1.1 KiB
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|
|
|
|
ARG BUILD_VERSION
|
|
ARG BUILD_UPSTREAM="2.1.24"
|
|
|
|
RUN \
|
|
#Install bashio
|
|
apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
wget \
|
|
jq \
|
|
nginx \
|
|
#Install bashio
|
|
&& curl -J -L -o /tmp/bashio.tar.gz \
|
|
"https://github.com/hassio-addons/bashio/archive/v0.10.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 \
|
|
\
|
|
#Install Joal
|
|
#&& curl -s -L -o /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/2.1.24/joal.tar.gz" \
|
|
#&& wget -O /tmp/joal.tar.gz "https://github.com/anthonyraymond/joal/releases/download/$BUILD_UPSTREAM/joal.tar.gz" \
|
|
#&& mkdir -p /joal \
|
|
#&& tar zxvf /tmp/joal.tar.gz -C /joal \
|
|
#&& chown -R $(id -u):$(id -g) /joal \
|
|
#&& rm /joal/jack-of* \
|
|
#Clean
|
|
&& rm -fr \
|
|
/tmp/* \
|
|
/var/{cache,log}/* \
|
|
/var/lib/apt/lists/*
|
|
|
|
# Copy root filesystem
|
|
COPY rootfs /
|
|
RUN chmod 777 /run.sh
|
|
|
|
ENTRYPOINT [ "/run.sh" ]
|
|
|