| 1234567891011121314151617181920212223242526 | #first stage - builderFROM golang:latest as builderCOPY . /appWORKDIR /app/netclientENV GO111MODULE=autoRUN CGO_ENABLED=0 GOOS=linux go build -o netclient main.go#second stageFROM debian:latestRUN apt-get update && apt-get -y install systemd procpsWORKDIR /root/COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/COPY --from=builder /app/netclient/netclient .CMD ["./netclient"]
 |