Alpine Golang is a docker image based in Alpine linux using a Dockerfile similar to google/golang and based on kiasaki/docker-alpine-golang.
This image is based on alpine:3.2 image.
GOROOT is set to /gorootGOPATH is set to /gopathCreate a Dockerfile in your Go application directory with the following content:
FROM caarlos0/alpine-go
WORKDIR /gopath/src/app
ADD . /gopath/src/app/
RUN go get app
CMD []
ENTRYPOINT ["/gopath/bin/app"]
Then you can run the following command in your application directory:
docker build -t my/app .
Content type
Image
Digest
sha256:fd747cdc4…
Size
59.4 MB
Last updated
about 11 years ago
docker pull caarlos0/alpine-go