Skip to content

Commit

Permalink
Revert 'Replace gotunnel with bore'
Browse files Browse the repository at this point in the history
  • Loading branch information
wizawu committed May 11, 2023
1 parent c570bb0 commit 6848d5c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions docker/proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
FROM golang:1.16-buster as gotunnel
RUN apt install -y git
RUN go get github.com/xjdrew/gotunnel

FROM node:14.16-buster-slim
COPY --from=gotunnel /go/bin/gotunnel /usr/bin/gotunnel

RUN echo "deb http://hk.archive.ubuntu.com/ubuntu focal main universe" > /etc/apt/sources.list
RUN apt update -o Acquire::AllowInsecureRepositories=true -y && \
Expand All @@ -11,12 +16,8 @@ RUN apt update -o Acquire::AllowInsecureRepositories=true -y && \
&& \
apt clean

RUN wget --no-check-certificate -q -O - \
https://github.com/ekzhang/bore/releases/download/v0.5.0/bore-v0.5.0-x86_64-unknown-linux-musl.tar.gz | \
tar -C /usr/bin/ -zxf -

RUN wget --no-check-certificate -q -O /usr/bin/brook \
https://github.com/txthinking/brook/releases/download/v20200502/brook_linux_amd64

RUN chmod a+x /usr/bin/bore /usr/bin/brook
RUN chmod a+x /usr/bin/brook /usr/bin/gotunnel
RUN ln -f /usr/share/zoneinfo/PRC /etc/localtime

0 comments on commit 6848d5c

Please sign in to comment.