mirror of
https://github.com/r3bo0tbx1/tor-guard-relay.git
synced 2026-04-06 00:32:04 +02:00
🐛 fix(docker): replace 'go get -u' and 'go mod tidy' with 'go mod download' for improved dependency management
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user