add NAT-PMP for automatic port mapping and external address discovery
This commit is contained in:
17
docker-tests/nat-pmp/Dockerfile.peer
Normal file
17
docker-tests/nat-pmp/Dockerfile.peer
Normal file
@@ -0,0 +1,17 @@
|
||||
# Peer container for NAT-PMP testing
|
||||
# Uses pre-built binary from host (for faster iteration)
|
||||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
iproute2 \
|
||||
procps \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy pre-built binary (build with: zig build -Doptimize=ReleaseFast -Dtarget=aarch64-linux)
|
||||
COPY zig-out/bin/mwp-demo /usr/local/bin/
|
||||
|
||||
# Test script
|
||||
COPY docker-tests/nat-pmp/peer-test.sh /test.sh
|
||||
RUN chmod +x /test.sh
|
||||
|
||||
WORKDIR /app
|
||||
Reference in New Issue
Block a user