Skip to content

Commit

Permalink
调试编译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
hslr-s committed Dec 10, 2023
1 parent f1596cc commit f80eea9
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,22 @@ COPY ./service .

RUN apk add --no-cache bash curl gcc git go musl-dev

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

# RUN go env -w GO111MODULE=on \
# # && go env -w GOPROXY=https://goproxy.cn,direct \
# && export PATH=$PATH:/go/bin \
# && go install -a -v github.com/go-bindata/go-bindata/...@latest \
# && go install -a -v github.com/elazarl/go-bindata-assetfs/...@latest \
# && go-bindata-assetfs -o=assets/bindata.go -pkg=assets assets/... \
# && go build -o sun-panel --ldflags="-X sun-panel/global.RUNCODE=release -X sun-panel/global.ISDOCKER=docker" main.go

RUN go env -w GO111MODULE=on
RUN export PATH=$PATH:/go/bin
RUN go install -a -v github.com/go-bindata/go-bindata/...@latest
RUN go install -a -v github.com/elazarl/go-bindata-assetfs/...@latest
RUN go-bindata-assetfs -o=assets/bindata.go -pkg=assets assets/...
RUN go build -o sun-panel --ldflags="-X sun-panel/global.RUNCODE=release -X sun-panel/global.ISDOCKER=docker" main.go



# run_image
Expand Down

0 comments on commit f80eea9

Please sign in to comment.