2020-11-28 11:24:56 -08:00
|
|
|
# syntax=docker.io/docker/dockerfile:experimental@sha256:de85b2f3a3e8a2f7fe48e8e84a65f6fdd5cd5183afa6412fff9caa6871649c44
|
2021-08-30 07:42:32 -07:00
|
|
|
FROM docker.io/golang:1.17.0@sha256:06e92e576fc7a7067a268d47727f3083c0a564331bfcbfdde633157fc91fb17d
|
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
|