mirror of https://github.com/bjdgyc/anylink.git
修改 docker 编译
This commit is contained in:
parent
3c015651ef
commit
ef3f2aba4c
|
@ -42,7 +42,7 @@ COPY ./LICENSE /app/LICENSE
|
|||
COPY ./home /app/home
|
||||
|
||||
#TODO 本地打包时使用镜像
|
||||
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||
#RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
|
||||
RUN apk add --no-cache bash iptables iproute2\
|
||||
&& chmod +x /app/docker_entrypoint.sh \
|
||||
&& ls /app
|
||||
|
|
|
@ -14,11 +14,9 @@ uname -a
|
|||
|
||||
cd /server
|
||||
|
||||
go mod tidy
|
||||
#go mod tidy
|
||||
|
||||
go build -o anylink -trimpath
|
||||
|
||||
# -ldflags "-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$buildDate"
|
||||
go build -o anylink -trimpath -ldflags "-s -w -extldflags '-static' -X main.appVer=$appVer -X main.commitId=$commitId -X main.buildDate=$buildDate"
|
||||
|
||||
ls -l /server/
|
||||
|
||||
|
|
Loading…
Reference in New Issue