diff --git a/Dockerfile b/Dockerfile index 545f9d1f3..9a88cc83b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ FROM golang:1.14-alpine as builder # Install git + SSL ca certificates. # Git is required for fetching the dependencies. # Ca-certificates is required to call HTTPS endpoints. -RUN apk update && apk add --no-cache git jq ca-certificates tzdata alpine-sdk npm && update-ca-certificates +RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk npm && update-ca-certificates WORKDIR /build @@ -34,9 +34,6 @@ ENV TZ=Europe/Berlin COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /build/evcc /usr/local/bin/evcc -COPY --from=builder /usr/bin/jq /usr/bin/ -COPY --from=builder /usr/lib/libonig.so.5* /usr/lib/ -COPY --from=builder /usr/lib/libjq.so.1* /usr/lib/ COPY docker/bin/* /evcc/ diff --git a/docker/bin/entrypoint.sh b/docker/bin/entrypoint.sh index b52b92a8a..8b6193b90 100755 --- a/docker/bin/entrypoint.sh +++ b/docker/bin/entrypoint.sh @@ -5,7 +5,7 @@ set -e HASSIO_OPTIONSFILE=/data/options.json if [ -f ${HASSIO_OPTIONSFILE} ]; then - CONFIG=$(jq -r .config_file ${HASSIO_OPTIONSFILE}) + CONFIG=$(grep config_file ${HASSIO_OPTIONSFILE}| cut -d ':' -f 2 | sed s/[\"}]//g ) echo "Using config file: ${CONFIG}" if [ ! -f ${CONFIG} ]; then diff --git a/docker/tmpl.Dockerfile b/docker/tmpl.Dockerfile index b774195c3..af5a22762 100644 --- a/docker/tmpl.Dockerfile +++ b/docker/tmpl.Dockerfile @@ -6,7 +6,7 @@ FROM golang:1.14-alpine as builder # Install git + SSL ca certificates. # Git is required for fetching the dependencies. # Ca-certificates is required to call HTTPS endpoints. -RUN apk update && apk add --no-cache git jq ca-certificates tzdata alpine-sdk npm && update-ca-certificates +RUN apk update && apk add --no-cache git ca-certificates tzdata alpine-sdk npm && update-ca-certificates WORKDIR /build @@ -30,9 +30,6 @@ ENV TZ=Europe/Berlin COPY --from=builder /usr/share/zoneinfo /usr/share/zoneinfo COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=builder /build/evcc /usr/local/bin/evcc -COPY --from=builder /usr/bin/jq /usr/bin/ -COPY --from=builder /usr/lib/libonig.so.5* /usr/lib/ -COPY --from=builder /usr/lib/libjq.so.1* /usr/lib/ COPY docker/bin/* /evcc/