Files
zeromesh/Dockerfile.server
xieyao 196ec09e55 fix: resolve P2P data plane decrypt failure and improve test environment
- Fix key derivation in both sdk/agent.go and internal/vl1/noise.go:
  sort public keys before hashing, use shared key for send/recv
- Adjust docker-compose port mappings to 7150-7153 range (within 7000-7200)
- Add GOPROXY env to Dockerfiles for Go module download in restricted networks
- Verified: all 3 clients connect with 2 peers each, zero decrypt errors
2026-06-17 15:19:54 +08:00

14 lines
435 B
Docker

FROM golang:1.26-alpine AS builder
ENV GOPROXY=https://goproxy.cn,https://goproxy.io,direct
RUN apk add --no-cache gcc musl-dev
WORKDIR /src
COPY . .
RUN CGO_ENABLED=1 go build -o /zeromesh .
FROM alpine:3.19
RUN apk add --no-cache iproute2 iptables-legacy
COPY --from=builder /zeromesh /usr/local/bin/zeromesh
COPY config.yaml /etc/zeromesh/config.yaml
EXPOSE 10001 19993/udp
CMD ["zeromesh", "-config", "/etc/zeromesh/config.yaml"]