Files
home-assistant-addons/vhclient/Dockerfile
T
Hans Karlinius f1508a63c6 test
2024-12-05 21:20:20 +01:00

23 lines
632 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
# Copy root filesystem
COPY rootfs /
# Install vhclient
ARG VHCLIENT_BASE_URL=https://www.virtualhere.com/sites/default/files/usbclient
RUN if [ "$BUILD_ARCH" = "armhf" ]; then \
ENV VHCLIENT="vhclientarmhf"; \
elif [ "$BUILD_ARCH" = "aarch64" ]; then \
ENV VHCLIENT="vhclientarm64"; \
elif [ "$BUILD_ARCH" = "amd64" ]; then \
ENV VHCLIENT="vhclientx86_64"; \
elif [ "$BUILD_ARCH" = "i386" ]; then \
ENV VHCLIENT="vhclienti386"; \
else \
echo "No vhclient exists for build arch"; \
fi
RUN \
curl -sSLf -o /usr/bin/vhclient $VHCLIENT_BASE_URL/$VHCLIENT
RUN chmod a+x /usr/bin/vhclient