** Deplicated!!! ** Change build mode below to solve glibc linking problem
go build -a -installsuffix cgo
This repository contains a Dockerfile of alpinego for Docker's trusted build published to the public DockerHub.
1.build go app under linux
2.write Dockerfile
#Dockerfile
FROM sort/alpinego
ARG app_name=YOU-GO-APP-BINARY
COPY ${app_name} /usr/bin/
ENTRYPOINT ["YOU-GO-APP-BINARY"]
MIT Copyright (c) 2019-2020 q@shellpub.com