Skip to content

grandmore/docker-golang-base

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

stuartfenton/docker-golang-base

Based on docker/golang but I have updated it to work with 1.5.0 as a docker base image that bundles the latest version of golang installed from golang.org.

It serves as a base for the stuartfenton/docker-golang-runtime image.

Notes

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

Usage

  • Create a Dockerfile in your golang application directory with the following content:

      FROM stuartfenton/docker-golang-base
    
      WORKDIR /gopath/src/app
      ADD . /gopath/src/app/
      RUN go get app
      
      CMD []
      ENTRYPOINT ["/gopath/bin/app"]
    
  • Run the following command in your application directory:

      docker build -t my/app .
    

docker-golang-base

About

A base golang image to work with.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages