diff --git a/Dockerfile b/Dockerfile index 301cf4d..41ef764 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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:3.23.2 diff --git a/Dockerfile.edge b/Dockerfile.edge index f6ee551..13e5d07 100644 --- a/Dockerfile.edge +++ b/Dockerfile.edge @@ -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