2020-08-03 10:47:22 -07:00
|
|
|
# syntax=docker/dockerfile:experimental
|
2020-10-16 11:48:53 -07:00
|
|
|
FROM golang:1.15.3
|
2020-08-03 10:47:22 -07:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2020-10-22 03:20:11 -07:00
|
|
|
ADD go.mod .
|
|
|
|
ADD go.sum .
|
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
|
|
|
go build -mod=readonly -o /dlv github.com/go-delve/delve/cmd/dlv
|
|
|
|
|
2020-08-03 10:47:22 -07:00
|
|
|
ADD . .
|
|
|
|
|
2020-08-17 09:20:15 -07:00
|
|
|
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
2020-10-22 03:20:11 -07:00
|
|
|
go build -gcflags="all=-N -l" -mod=readonly -o /guardiand github.com/certusone/wormhole/bridge/cmd/guardiand
|
2020-08-03 10:47:22 -07:00
|
|
|
|
|
|
|
ENTRYPOINT /guardiand
|