🐛 fix(docker): update dependency management in Dockerfile and Dockerfile.edge to use specific versions for improved stability

This commit is contained in:
rE-Bo0t.bx1
2026-01-12 19:43:58 +08:00
parent 2e14d0bdc5
commit c735b350c0
2 changed files with 8 additions and 4 deletions

View File

@@ -5,8 +5,10 @@ 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 edit -replace=github.com/pion/transport/v3=github.com/pion/transport/v4@latest \
&& go get -u ./... \
&& go get golang.org/x/crypto@latest \
&& go get golang.org/x/net@latest \
&& go get github. com/pion/interceptor@latest \
&& go get github.com/cloudflare/circl@latest \
&& go mod tidy \
&& CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/bin/lyrebird ./cmd/lyrebird

View File

@@ -5,8 +5,10 @@ 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 edit -replace=github.com/pion/transport/v3=github.com/pion/transport/v4@latest \
&& go get -u ./... \
&& go get golang.org/x/crypto@latest \
&& go get golang.org/x/net@latest \
&& go get github. com/pion/interceptor@latest \
&& go get github.com/cloudflare/circl@latest \
&& go mod tidy \
&& CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/bin/lyrebird ./cmd/lyrebird