Last active
March 23, 2021 18:23
-
-
Save jstangroome/93742d47d8b4965877a924fc99f60c9e to your computer and use it in GitHub Desktop.
golang:1.10 docker image and /go/src/app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 ./... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Previous working Dockerfile | |
FROM golang:1.9 | |
WORKDIR /go/src/app | |
COPY . . | |
RUN go-wrapper download | |
RUN go-wrapper install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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