Skip to content

Instantly share code, notes, and snippets.

@jstangroome
Last active March 23, 2021 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jstangroome/93742d47d8b4965877a924fc99f60c9e to your computer and use it in GitHub Desktop.
Save jstangroome/93742d47d8b4965877a924fc99f60c9e to your computer and use it in GitHub Desktop.
golang:1.10 docker image and /go/src/app
# From example at https://github.com/docker-library/docs/blob/9ed50c57d5fa14e634d909c8c6a1583605e044f3/golang/content.md#start-a-go-instance-in-your-app
FROM golang:1.10
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
# Previous working Dockerfile
FROM golang:1.9
WORKDIR /go/src/app
COPY . .
RUN go-wrapper download
RUN go-wrapper install
package main // import "github.com/jstangroome/what-how"
import "log"
func main () {
log.Printf("Hello")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment