phusion/baseimage:latest Go 1.6 supports vendoring by default.
gcr.io/google_appengine/golang is a docker base image
that bundles the latest version of Go installed from
golang.org.
It serves as a base for Go apps running on Google App Engine Managed VMs.
Your application will be built using Go 1.5 inside the docker instance without the experimental vendoring support. To enable Go 1.5 experimental vendoring support, set the environment variable like this:
FROM gcr.io/google_appengine/golang
ENV GO15VENDOREXPERIMENT 1
COPY . /go/src/app
RUN go-wrapper install -tags appenginevm
For Go 1.5 vendoring details, see the documentation for the go command and the design document. As of 2015-08-27, the following Go package management apps support this new flag: godep, govendor, and glide.
To use Go 1.4, edit the app.yaml file and remove the "runtime: go" line then provide your own Dockerfile in the same directory as the app.yaml file, like this:
FROM golang:1.4-onbuild
COPY . /go/src/app
RUN go-wrapper install -tags appenginevm
Create a Dockerfile in your Go application directory with the following content:
FROM gcr.io/google_appengine/golang
COPY . /go/src/app
RUN go-wrapper install -tags appenginevm
Run the following command in your application directory:
docker build -t my/app .
Content type
Image
Digest
Size
222.7 MB
Last updated
over 10 years ago
docker pull twnel/golang