FROM registry.ngaiot.com/base-images/golang-1.22:1.22-fs-3 WORKDIR /app/ COPY . . RUN pwd \ && ls \ && go env -w GOPROXY=https://goproxy.cn \ && go env -w GOPRIVATE=gitea.ngaiot.com \ && go env -w GO111MODULE=on RUN cd containerApp \ && CGO_ENABLED=0 go build -a -v -o ./app.exe main.go FROM registry.ngaiot.com/base-images/golang-1.22:1.22-fs-3 WORKDIR /app/ COPY --from=0 /app/*.exe /app/*.yaml /app/ CMD ["/app/app.exe"]