Skip to content

Commit

Permalink
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 2e4c28e commit c570bb0
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions docker/proxy/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
FROM golang:1.16-buster as intermediate
RUN apt install -y git
RUN go get github.com/wizawu/gotunnel

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

RUN echo "deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu focal main universe" > /etc/apt/sources.list
RUN echo "deb http://hk.archive.ubuntu.com/ubuntu focal main universe" > /etc/apt/sources.list
RUN apt update -o Acquire::AllowInsecureRepositories=true -y && \
apt install --allow-unauthenticated --no-install-recommends -y \
curl \
Expand All @@ -16,7 +11,12 @@ 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/brook

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

0 comments on commit c570bb0

Please sign in to comment.