mirror of
https://github.com/teddysun/across.git
synced 2025-11-26 21:35:33 +08:00
Update Dockerfile
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#
|
||||
# This is a Shell script for v2ray based alpine with Docker image
|
||||
#
|
||||
# Copyright (C) 2019 - 2020 Teddysun <i@teddysun.com>
|
||||
# Copyright (C) 2019 - 2022 Teddysun <i@teddysun.com>
|
||||
#
|
||||
# Reference URL:
|
||||
# https://github.com/v2fly/v2ray-core.git
|
||||
@@ -41,7 +41,7 @@ fi
|
||||
[ -z "${ARCH}" ] && echo "Error: Not supported OS Architecture" && exit 1
|
||||
# Download binary file
|
||||
V2RAY_FILE="v2ray_linux_${ARCH}"
|
||||
V2CTL_FILE="v2ctl_linux_${ARCH}"
|
||||
# V2CTL_FILE="v2ctl_linux_${ARCH}"
|
||||
|
||||
echo "Downloading binary file: ${V2RAY_FILE}"
|
||||
wget -O /usr/bin/v2ray https://dl.lamp.sh/files/${V2RAY_FILE} > /dev/null 2>&1
|
||||
@@ -50,11 +50,11 @@ if [ $? -ne 0 ]; then
|
||||
fi
|
||||
echo "Download binary file: ${V2RAY_FILE} completed"
|
||||
|
||||
echo "Downloading binary file: ${V2CTL_FILE}"
|
||||
wget -O /usr/bin/v2ctl https://dl.lamp.sh/files/${V2CTL_FILE} > /dev/null 2>&1
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "Error: Failed to download binary file: ${V2CTL_FILE}" && exit 1
|
||||
fi
|
||||
echo "Download binary file: ${V2CTL_FILE} completed"
|
||||
# echo "Downloading binary file: ${V2CTL_FILE}"
|
||||
# wget -O /usr/bin/v2ctl https://dl.lamp.sh/files/${V2CTL_FILE} > /dev/null 2>&1
|
||||
# if [ $? -ne 0 ]; then
|
||||
# echo "Error: Failed to download binary file: ${V2CTL_FILE}" && exit 1
|
||||
# fi
|
||||
# echo "Download binary file: ${V2CTL_FILE} completed"
|
||||
chmod +x /usr/bin/v2ray
|
||||
chmod +x /usr/bin/v2ctl
|
||||
# chmod +x /usr/bin/v2ctl
|
||||
|
||||
Reference in New Issue
Block a user