2020-11-28 11:24:56 -08:00
|
|
|
# syntax=docker.io/docker/dockerfile:experimental@sha256:de85b2f3a3e8a2f7fe48e8e84a65f6fdd5cd5183afa6412fff9caa6871649c44
|
2021-12-12 02:53:51 -08:00
|
|
|
FROM docker.io/golang:1.17.5@sha256:90d1ab81f3d157ca649a9ff8d251691b810d95ea6023a03cdca139df58bca599
|
2020-08-03 10:47:22 -07:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2020-10-28 14:41:38 -07:00
|
|
|
ADD tools tools
|
2020-10-22 03:20:11 -07:00
|
|
|
|
|
|
|
RUN --mount=type=cache,target=/root/.cache --mount=type=cache,target=/go \
|
2020-10-28 14:41:38 -07:00
|
|
|
cd tools/ && go build -mod=readonly -o /dlv github.com/go-delve/delve/cmd/dlv
|
2020-10-22 03:20:11 -07:00
|
|
|
|
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 \
|
2021-08-26 01:35:09 -07:00
|
|
|
go build -race -gcflags="all=-N -l" -mod=readonly -o /guardiand github.com/certusone/wormhole/node
|
2020-08-03 10:47:22 -07:00
|
|
|
|
|
|
|
ENTRYPOINT /guardiand
|