🐛 fix(docker): replace 'go get -u' and 'go mod tidy' with 'go mod download' for improved dependency management

This commit is contained in:
rE-Bo0t.bx1
2026-01-12 19:11:49 +08:00
parent 5120d0d0e9
commit 879084c11e
3 changed files with 4 additions and 6 deletions

View File

@@ -5,8 +5,7 @@ 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 tidy \
&& go mod download \
&& CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/bin/lyrebird ./cmd/lyrebird
FROM alpine:3.23.2

View File

@@ -5,8 +5,7 @@ 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 tidy \
&& go mod download \
&& CGO_ENABLED=0 go build -ldflags="-s -w" -o /usr/bin/lyrebird ./cmd/lyrebird
FROM alpine:edge

View File

@@ -410,7 +410,7 @@ Nickname MyTorRelay
ContactInfo your-email@example.com
ORPort 9001
ORPort [::]:9001
DirPort 9030
DirPort 0
ExitRelay 0
SocksPort 0
DataDirectory /var/lib/tor
@@ -559,7 +559,7 @@ flowchart TB
━━━━━━━━━━
Routes Traffic
ExitRelay 0
DirPort Enabled"]
DirPort Disabled"]
Mode -->|exit| Exit["🚪 EXIT RELAY
━━━━━━━━━━
Last Hop to Internet