Skip to content

Instantly share code, notes, and snippets.

@jcbombardelli
Created April 6, 2020 01:50
Show Gist options
  • Save jcbombardelli/234e69232d471f7df72c3f2f461a3668 to your computer and use it in GitHub Desktop.
Save jcbombardelli/234e69232d471f7df72c3f2f461a3668 to your computer and use it in GitHub Desktop.
FROM golang:1.13-alpine as builder
WORKDIR /go/src/app
COPY . .
RUN go get -d -v ./...
RUN go install -v ./...
RUN go build -o /go/bin/app
#-------------------------------
FROM scratch
COPY --from=builder /go/bin/app /go/bin/app
ENTRYPOINT [ "/go/bin/app" ]
package main
import (
"fmt"
)
func main() {
fmt.Printf("Code.education Rocks! 🤘")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment