From f1596cc7351ca998e3a00e2876c62466485b2a2c Mon Sep 17 00:00:00 2001 From: Sun <95302870@qq.com> Date: Sun, 10 Dec 2023 13:23:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BC=96=E8=AF=91=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e980b28..4a8a221 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,13 +24,17 @@ COPY ./service . RUN apk add --no-cache bash curl gcc git go musl-dev -# 执行指令 关闭链接确认 -RUN go env -w GO111MODULE=on \ +RUN echo "Building backend..." \ + && go env -w GO111MODULE=on \ # && go env -w GOPROXY=https://goproxy.cn,direct \ && export PATH=$PATH:/go/bin \ + && echo "Building backend1" \ && go install -a -v github.com/go-bindata/go-bindata/...@latest \ + && echo "Building backend3" \ && go install -a -v github.com/elazarl/go-bindata-assetfs/...@latest \ + && echo "Building backend4" \ && go-bindata-assetfs -o=assets/bindata.go -pkg=assets assets/... \ + && echo "Building backend5" \ && go build -o sun-panel --ldflags="-X sun-panel/global.RUNCODE=release -X sun-panel/global.ISDOCKER=docker" main.go