-----> Go app detected
-----> Fetching jq... done
!!
!! Go modules are an experimental feature of go1.11 !! Any issues building code that uses Go modules should be
!! reported via: https://github.com/heroku/heroku-buildpack-go/issues
!!
!! Additional documentation for using Go modules with this buildpack
!! can be found here: https://github.com/heroku/heroku-buildpack-go#go-module-specifics
!!
!! The go.mod file for this project does not specify a Go version
!!
!! Defaulting to go1.11.4 !!
!! For more details see: https://devcenter.heroku.com/articles/go-apps-with-modules#build-configuration
!!
-----> Installing go1.11.4-----> Fetching go1.11.4.linux-amd64.tar.gz... done
!! Installing package'.' (default)
!!
!! To install a different package spec add a comment in the following form to your `go.mod` file:
!! // +heroku install ./cmd/...
!!
!! For more details see: https://devcenter.heroku.com/articles/go-apps-with-modules#build-configuration
!!
-----> Running: go install -v -tags heroku .
FROM golang:1.11-alpine as build_baseRUN apk add bash ca-certificates git gcc g++ libc-devWORKDIR /app# Force the go compiler to use modulesENVGO111MODULE=on
# We want to populate the module cache based on the go.{mod,sum} files.COPY go.mod .COPY go.sum .RUN go mod download# This image builds the weavaite serverFROM build_base AS server_builder# Here we copy the rest of the source codeCOPY . .ENVGOOS=linux
ENVGOARCH=amd64
RUN go build -o /facebook-account-kit -tags netgo -ldflags '-w -extldflags "-static"' .### Put the binary onto base imageFROM plugins/base:linux-amd64LABELmaintainer="Bo-Yi Wu <appleboy.tw@gmail.com>"EXPOSE 8080COPY --from=server_builder /app/templates /templatesCOPY --from=server_builder /app/images /imagesCOPY --from=server_builder /facebook-account-kit /facebook-account-kitCMD ["/facebook-account-kit"]