🐛 fix(docker): update dependency management in Dockerfile and Dockerfile.edge to use 'go get -u' after module replacement

This commit is contained in:
rE-Bo0t.bx1
2026-01-12 19:40:05 +08:00
parent 19da41b87b
commit 2e14d0bdc5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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