mirror of
https://github.com/hanzoai/volume.git
synced 2026-10-01 00:48:00 +00:00
One toolchain across the estate. The tree carried 1.26.0, .1, .3, .4 and .5 at once, so which compiler built a binary depended on which repo it came from. Co-authored-by: Hanzo Dev <[email protected]>
18 lines
589 B
Docker
18 lines
589 B
Docker
# syntax=docker/dockerfile:1.7.0
|
|
|
|
FROM golang:1.26.8-alpine
|
|
|
|
ARG TARGETPLATFORM
|
|
ARG TARGETARCH
|
|
|
|
RUN if [ "$TARGETPLATFORM" != "linux/amd64" ] && [ "$TARGETPLATFORM" != "linux/arm64" ] && [ "$TARGETPLATFORM" != "linux/arm/v7" ] && [ "$TARGETPLATFORM" != "linux/ppc64le" ] && [ "$TARGETPLATFORM" != "linux/riscv64" ] && [ "$TARGETPLATFORM" != "linux/s390x" ]; then \
|
|
echo "Error: Unsupported TARGETPLATFORM: $TARGETPLATFORM" && \
|
|
exit 1; \
|
|
fi
|
|
|
|
RUN apk update
|
|
RUN apk upgrade --no-cache busybox zlib
|
|
|
|
COPY bin/hanzo-volume-${TARGETARCH} /usr/bin/hanzo-volume
|
|
CMD ["hanzo-volume"]
|