jenkins自动发布之go/golang项目
go语言项目 后端API接口 beego框架 Dockerfile FROM golang:1.16-alpine as builder WORKDIR /work ENV GO111MODULE=on \ GOPROXY=https://goproxy.cn,direct COPY . . RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o app . \ && mkdir run && cp -r conf app run && cp conf/app-test.conf run/conf/app.conf #FROM scratch FROM alpine RUN apk add --no-cache ca-certificates tzdata \ && ln