Update Dockerfile

dependabot/github_actions/actions/checkout-3.1.0
fscarmen 3 years ago committed by GitHub
parent 61187c982e
commit fce9399d0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 23
      Dockerfile

@ -1,16 +1,13 @@
FROM alpine
FROM ubuntu:latest
ENV DIR=/unlock
WORKDIR /root/
WORKDIR $DIR
RUN apt-get update &&\
apt-get install -y wget iproute2 openssh-server systemctl &&\
echo \
'service ssh start\
wget -O nezha.sh https://raw.githubusercontents.com/naiba/nezha/master/script/install.sh && chmod +x nezha.sh && ./nezha.sh install_agent $NEZHA_SERVER $NEZHA_PORT $NEZHA_KEY\
tail -f /dev/null' | sed 's/ */\n/g' > "start.sh" &&\
chmod +x start.sh
RUN apk add --no-cache wireguard-tools curl \
&& rm -rf /var/cache/apk/* \
&& arch=$(arch | sed s/aarch64/armv8/ | sed s/x86_64/amd64/) \
&& latest=$(curl -sSL "https://api.github.com/repos/ginuerzh/gost/releases/latest" | grep "tag_name" | head -n 1 | cut -d : -f2 | sed 's/[ \"v,]//g') \
&& wget -O gost.gz https://github.com/ginuerzh/gost/releases/download/v$latest/gost-linux-"$arch"-"$latest".gz \
&& gzip -d gost.gz \
&& echo -e "wg-quick up wgcf\n./gost -L :40000" > run.sh \
&& chmod +x gost run.sh
ENTRYPOINT ./run.sh
ENTRYPOINT ./start.sh

Loading…
Cancel
Save