From 05ece6c8adfcd6f62075f31f269faae9086b7f88 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Mon, 2 Aug 2021 10:33:15 +0200 Subject: [PATCH] Update Dockerfile --- mealie/Dockerfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/mealie/Dockerfile b/mealie/Dockerfile index 7594c59db..bfb4d67ec 100644 --- a/mealie/Dockerfile +++ b/mealie/Dockerfile @@ -4,6 +4,8 @@ FROM ${BUILD_FROM} COPY rootfs / +ARG BASHIO_VERSION=0.13.0 + RUN \ ################ # Install apps # @@ -13,16 +15,12 @@ RUN \ ################## # Install bashio # ################## - && mkdir -p /bashio/bashio \ - && curl -J -L -o /bashio/bashio.tar.gz \ - "https://github.com/hassio-addons/bashio/archive/v0.13.0.tar.gz" \ - && tar zxvf \ - /bashio/bashio.tar.gz \ - --strip 1 -C /bashio/bashio \ - \ - && mv /bashio/bashio/lib /usr/lib/bashio \ + && mkdir -p /tmp/bashio \ + && curl -L -f -s "https://github.com/hassio-addons/bashio/archive/v${BASHIO_VERSION}.tar.gz" \ + | tar -xzf - --strip 1 -C /tmp/bashio \ + && mv /tmp/bashio/lib /usr/lib/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ - && rm -fr /bashio \ + && rm -rf /tmp/bashio \ \ ############### # Adapt image #