Files
volume/package/Dockerfile
T
zeekayandHanzo Dev 61bfa3f65a go 1.26.8
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]>
2026-09-08 23:52:45 -07:00

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"]