diff --git a/Dockerfile b/Dockerfile index 95578a589..d70d3f32d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,6 @@ ENV \ SUPERVISOR_API=http://localhost ARG BUILD_ARCH -ARG VCN_VERSION WORKDIR /usr/src # Install base @@ -19,34 +18,7 @@ RUN \ libffi \ libpulse \ musl \ - openssl \ - && apk add --no-cache --virtual .build-dependencies \ - build-base \ - go \ - \ - && git clone -b v${VCN_VERSION} --depth 1 \ - https://github.com/codenotary/vcn \ - && cd vcn \ - \ - && if [ "${BUILD_ARCH}" = "armhf" ]; then \ - GOARM=6 GOARCH=arm go build -o vcn -ldflags="-s -w" ./cmd/vcn; \ - elif [ "${BUILD_ARCH}" = "armv7" ]; then \ - GOARM=7 GOARCH=arm go build -o vcn -ldflags="-s -w" ./cmd/vcn; \ - elif [ "${BUILD_ARCH}" = "aarch64" ]; then \ - GOARCH=arm64 go build -o vcn -ldflags="-s -w" ./cmd/vcn; \ - elif [ "${BUILD_ARCH}" = "i386" ]; then \ - GOARCH=386 go build -o vcn -ldflags="-s -w" ./cmd/vcn; \ - elif [ "${BUILD_ARCH}" = "amd64" ]; then \ - GOARCH=amd64 go build -o vcn -ldflags="-s -w" ./cmd/vcn; \ - else \ - exit 1; \ - fi \ - \ - && rm -rf /root/go /root/.cache \ - && mv vcn /usr/bin/vcn \ - \ - && apk del .build-dependencies \ - && rm -rf /usr/src/vcn + openssl # Install requirements COPY requirements.txt . diff --git a/build.json b/build.json index a4c9ef943..62ceaf8e4 100644 --- a/build.json +++ b/build.json @@ -8,9 +8,6 @@ "amd64": "ghcr.io/home-assistant/amd64-base-python:3.9-alpine3.14", "i386": "ghcr.io/home-assistant/i386-base-python:3.9-alpine3.14" }, - "args": { - "VCN_VERSION": "0.9.8" - }, "labels": { "io.hass.type": "supervisor", "org.opencontainers.image.title": "Home Assistant Supervisor", @@ -21,4 +18,4 @@ "org.opencontainers.image.documentation": "https://www.home-assistant.io/docs/", "org.opencontainers.image.licenses": "Apache License 2.0" } -} +} \ No newline at end of file