mirror of
https://github.com/p4gefau1t/trojan-go.git
synced 2024-04-21 12:21:34 +00:00
update docker file
This commit is contained in:
@@ -3,9 +3,13 @@ FROM golang:latest AS builder
|
||||
WORKDIR /
|
||||
RUN git clone --depth=1 https://github.com/p4gefau1t/trojan-go.git
|
||||
WORKDIR /trojan-go
|
||||
RUN go build -tags "full" -ldflags "-s -w" -o /trojan
|
||||
RUN mkdir release && go build -tags "full" -ldflags "-s -w" -o release
|
||||
RUN wget https://github.com/v2ray/domain-list-community/raw/release/dlc.dat -O release/geosite.dat \
|
||||
&& wget https://github.com/v2ray/geoip/raw/release/geoip.dat -O release/geoip.dat
|
||||
|
||||
FROM debian:buster-slim
|
||||
WORKDIR /root/
|
||||
COPY --from=builder /trojan .
|
||||
CMD ["./trojan"]
|
||||
WORKDIR /
|
||||
COPY --from=builder /trojan-go/release /trojan-go/
|
||||
|
||||
ENTRYPOINT ["/trojan-go/trojan-go", "-config"]
|
||||
CMD ["/config/config.json"]
|
||||
Reference in New Issue
Block a user