Sign inSign up

caarlos0/alpine-go

By caarlos0

•Updated over 10 years ago

Image
2

6.2K

caarlos0/alpine-go repository overview

⁠Alpine Golang

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.

⁠Notes

  • GOROOT is set to /goroot
  • GOPATH is set to /gopath

⁠Usage

Create 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 .

Tag summary

Content type

Image

Digest

sha256:fd747cdc4…

Size

59.4 MB

Last updated

about 11 years ago

docker pull caarlos0/alpine-go