23 lines
568 B
Docker
23 lines
568 B
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Copy root filesystem
|
|
COPY rootfs /
|
|
|
|
RUN if [ "$BUILD_ARCH" = "armhf" ]; then \
|
|
VHCLIENT_ARCH="armhf"; \
|
|
elif [ "$BUILD_ARCH" = "aarch64" ]; then \
|
|
VHCLIENT_ARCH="arm64"; \
|
|
elif [ "$BUILD_ARCH" = "amd64" ]; then \
|
|
VHCLIENT_ARCH="x86_64"; \
|
|
elif [ "$BUILD_ARCH" = "i386" ]; then \
|
|
VHCLIENT_ARCH="i386"; \
|
|
else \
|
|
echo "No vhclient exists for build arch"; \
|
|
fi
|
|
|
|
RUN \
|
|
curl -sSLf -o /usr/bin/vhclient \
|
|
"https://www.virtualhere.com/sites/default/files/usbclient/vhclient"${VHCLIENT_ARCH}
|
|
RUN chmod a+x /usr/bin/vhclient
|