O'Reilly logo

Go Web Development Cookbook by Arpit Aggarwal

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How it works…

Verify whether the Docker image has been created successfully by executing the following command:

$ docker images

This will list all the top-level images, their repositories, tags, and their size, as shown in the following screenshot:

Let's understand the Dockerfile we have created:

  • FROM golang:1.9.2: The FROM instruction specifies the base image, which is, for us golang:1.9.2
  • ENV SRC_DIR=/go/src/github.com/arpitaggarwal/: Here, we are setting the Go source code directory as an environment variable using the ENV statement
  • ENV GOBIN=/go/bin: Here, we are setting the GOBIN or a directory to generate executable binaries as an environment ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required