mirror of
https://github.com/home-assistant/supervisor.git
synced 2025-07-14 12:46:32 +00:00
Remove vcn from Dockerfile (#3241)
This commit is contained in:
parent
7a6663ba80
commit
03f0a136ab
30
Dockerfile
30
Dockerfile
@ -6,7 +6,6 @@ ENV \
|
|||||||
SUPERVISOR_API=http://localhost
|
SUPERVISOR_API=http://localhost
|
||||||
|
|
||||||
ARG BUILD_ARCH
|
ARG BUILD_ARCH
|
||||||
ARG VCN_VERSION
|
|
||||||
WORKDIR /usr/src
|
WORKDIR /usr/src
|
||||||
|
|
||||||
# Install base
|
# Install base
|
||||||
@ -19,34 +18,7 @@ RUN \
|
|||||||
libffi \
|
libffi \
|
||||||
libpulse \
|
libpulse \
|
||||||
musl \
|
musl \
|
||||||
openssl \
|
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
|
|
||||||
|
|
||||||
# Install requirements
|
# Install requirements
|
||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
|
@ -8,9 +8,6 @@
|
|||||||
"amd64": "ghcr.io/home-assistant/amd64-base-python:3.9-alpine3.14",
|
"amd64": "ghcr.io/home-assistant/amd64-base-python:3.9-alpine3.14",
|
||||||
"i386": "ghcr.io/home-assistant/i386-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": {
|
"labels": {
|
||||||
"io.hass.type": "supervisor",
|
"io.hass.type": "supervisor",
|
||||||
"org.opencontainers.image.title": "Home Assistant 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.documentation": "https://www.home-assistant.io/docs/",
|
||||||
"org.opencontainers.image.licenses": "Apache License 2.0"
|
"org.opencontainers.image.licenses": "Apache License 2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user