2020-11-28 11:24:56 -08:00
|
|
|
# syntax=docker.io/docker/dockerfile:experimental@sha256:de85b2f3a3e8a2f7fe48e8e84a65f6fdd5cd5183afa6412fff9caa6871649c44
|
2021-01-19 07:15:54 -08:00
|
|
|
FROM golang:1.15.6@sha256:de97bab9325c4c3904f8f7fec8eb469169a1d247bdc97dcab38c2c75cf4b4c5d
|
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 \
|
2020-10-28 14:41:38 -07:00
|
|
|
go build -gcflags="all=-N -l" -mod=readonly -o /guardiand github.com/certusone/wormhole/bridge
|
2020-08-03 10:47:22 -07:00
|
|
|
|
|
|
|
ENTRYPOINT /guardiand
|