e2f7fa381b
* Utilize Ginkgo and replace `testing` library. * Add TOC to docs * Add Docker specific files * Remove -e * Update on-pr-manual.yml * Add depth * Add repositories * Remove $ from path * Update path for make * Setup Go and Ginkgo * Use go mod download * Use go install * Update on-pr-manual.yml * Use latest * Remove install of GINKGO * Add explicit gopath * Explicitly specify the gopath * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Update on-pr-manual.yml * Use which ginkgo * Try with make now * Final working Make
20 lines
648 B
Docker
20 lines
648 B
Docker
FROM golang:1.18-alpine as builder
|
|
|
|
WORKDIR /go/src/github.com/vulcanize/ipld-ethcl-indexer
|
|
RUN apk --no-cache add ca-certificates make git g++ linux-headers
|
|
|
|
ENV GO111MODULE=on
|
|
COPY go.mod .
|
|
COPY go.sum .
|
|
RUN go mod tidy; go mod download
|
|
COPY . .
|
|
|
|
RUN GCO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o ipld-ethcl-indexer .
|
|
RUN chmod +x ipld-ethcl-indexer
|
|
|
|
FROM frolvlad/alpine-bash:latest
|
|
RUN apk --no-cache add ca-certificates
|
|
WORKDIR /root/
|
|
COPY --from=builder /go/src/github.com/vulcanize/ipld-ethcl-indexer/ipld-ethcl-indexer /root/ipld-ethcl-indexer
|
|
ADD entrypoint.sh .
|
|
ENTRYPOINT ["./entrypoint.sh"] |