Skip to content

Commit

Permalink
优化Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
Jrohy committed Dec 12, 2021
1 parent 8182459 commit 1a45702
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion asset/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ARG SERVICE_URL="https://raw.githubusercontent.com/Jrohy/trojan/master/asset/tro
RUN yum install socat bash-completion crontabs iptables openssl unzip -y && \
LATEST_VERSION=`curl -H 'Cache-Control: no-cache' -s "$VERSION_CHECK" | grep 'tag_name' | cut -d\" -f4` && \
[[ $TARGETARCH =~ "arm64" ]] && ARCH="arm64" || ARCH="amd64" && \
curl -L "$DOWNLAOD_URL/$LATEST_VERSION/trojan-linux-$ARCH" -o /usr/local/bin/trojan && \
curl -fL "$DOWNLAOD_URL/$LATEST_VERSION/trojan-linux-$ARCH" -o /usr/local/bin/trojan && \
curl -L $SERVICE_URL -o /etc/systemd/system/trojan-web.service && \
chmod +x /usr/local/bin/trojan && \
echo "source <(trojan completion bash)" >> ~/.bashrc && \
Expand Down

0 comments on commit 1a45702

Please sign in to comment.