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>
19 lines
458 B
Docker
19 lines
458 B
Docker
# 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"]
|