Multi-arch Docker push: amd64 + arm64 with manifest
All checks were successful
CI / test (push) Successful in 1m8s
All checks were successful
CI / test (push) Successful in 1m8s
- Dockerfile.static: takes pre-built binary, no compilation - push-docker.sh: downloads x86_64 from CI release, builds arm64 natively, creates multi-arch manifest and pushes both - docker pull works on both Intel and Apple Silicon / RPi Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
18
Dockerfile.static
Normal file
18
Dockerfile.static
Normal file
@@ -0,0 +1,18 @@
|
||||
# Minimal image from a pre-built static binary
|
||||
# Usage: docker build -f Dockerfile.static --build-arg BINARY=dist/btest .
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
ca-certificates \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
ARG BINARY=dist/btest
|
||||
COPY ${BINARY} /usr/local/bin/btest
|
||||
RUN chmod +x /usr/local/bin/btest
|
||||
|
||||
EXPOSE 2000/tcp
|
||||
EXPOSE 2001-2100/udp
|
||||
EXPOSE 2257-2356/udp
|
||||
|
||||
ENTRYPOINT ["btest"]
|
||||
CMD ["-s"]
|
||||
Reference in New Issue
Block a user