Update Dockerfile

This commit is contained in:
Alexandre
2021-06-23 21:29:35 +02:00
committed by GitHub
parent a85d9e148b
commit 1e4ab418c1

View File

@@ -13,6 +13,7 @@ RUN \
curl \ curl \
jq \ jq \
bash \ bash \
xz build-base libressl-dev ca-certificates \
\ \
################## ##################
# Install bashio # # Install bashio #
@@ -22,9 +23,12 @@ RUN \
| tar -xzf - --strip 1 -C /tmp/bashio \ | tar -xzf - --strip 1 -C /tmp/bashio \
&& mv /tmp/bashio/lib /usr/lib/bashio \ && mv /tmp/bashio/lib /usr/lib/bashio \
&& ln -s /usr/lib/bashio/bashio /usr/bin/bashio \ && ln -s /usr/lib/bashio/bashio /usr/bin/bashio \
&& rm -rf /tmp/bashio && rm -rf /tmp/bashio \
\
RUN apk upgrade --no-cache &&\ ####################
# Install mustache #
####################
&& apk upgrade --no-cache &&\
apk add --no-cache --virtual .build-deps\ apk add --no-cache --virtual .build-deps\
build-base\ build-base\
git\ git\
@@ -32,7 +36,7 @@ RUN apk upgrade --no-cache &&\
go get -u github.com/quantumew/mustache-cli &&\ go get -u github.com/quantumew/mustache-cli &&\
cp $GOPATH/bin/* /usr/bin/ && \ cp $GOPATH/bin/* /usr/bin/ && \
rm -rf $GOPATH /var/cache/apk/* /tmp/src &&\ rm -rf $GOPATH /var/cache/apk/* /tmp/src &&\
apk del .build-deps build-base apk del .build-deps xz build-base
# Copy root filesystem # Copy root filesystem
COPY rootfs / COPY rootfs /