🐛 fix(docker): update dependency management in Dockerfile and Dockerfile.edge

This commit is contained in:
rE-Bo0t.bx1
2026-01-12 19:24:52 +08:00
parent 879084c11e
commit 19da41b87b
2 changed files with 6 additions and 2 deletions

View File

@@ -5,7 +5,9 @@ RUN apk add --no-cache git
WORKDIR /go/src/lyrebird
RUN git clone https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/lyrebird.git . \
&& go mod download \
&& go get -u ./... \
&& go mod edit -replace=github.com/pion/transport/v3=github.com/pion/transport/v4@latest \
&& go mod tidy \
&& CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/bin/lyrebird ./cmd/lyrebird
FROM alpine:edge