mirror of
https://github.com/bjdgyc/anylink.git
synced 2025-08-08 18:16:48 +08:00
添加 deploy 部署脚本
优化应用易用性
This commit is contained in:
21
docker/init_release.sh
Normal file
21
docker/init_release.sh
Normal file
@@ -0,0 +1,21 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -x
|
||||
|
||||
#TODO 本地打包时使用镜像
|
||||
if [[ $CN == "yes" ]]; then
|
||||
sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||
export GOPROXY=https://goproxy.cn
|
||||
fi
|
||||
|
||||
apk add --no-cache bash iptables iproute2 tzdata
|
||||
chmod +x /app/docker_entrypoint.sh
|
||||
mkdir /app/log
|
||||
|
||||
#备份配置文件
|
||||
cp -r /app/conf /home/conf-bak
|
||||
|
||||
tree /app
|
||||
|
||||
uname -a
|
||||
date -Iseconds
|
Reference in New Issue
Block a user