mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
19 lines
354 B
Docker
19 lines
354 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
VOLUME [ "/data" ]
|
|
|
|
#Install last version https://github.com/dvershinin/lastversion
|
|
RUN \
|
|
apk add --no-cache git moreutils \
|
|
&& pip install --upgrade pip \
|
|
&& pip install lastversion
|
|
|
|
# Copy script
|
|
COPY run.sh /
|
|
RUN chmod a+x /run.sh
|
|
CMD [ "/run.sh"]
|
|
|
|
# Set shell
|
|
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
|