We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gocache
1 parent f58daeb commit 0cfe145Copy full SHA for 0cfe145
stacks/flow.Dockerfile
@@ -20,7 +20,8 @@ WORKDIR /root/flow
20
ENV CGO_ENABLED=1
21
# Generate the typed handler wrapper
22
RUN go generate
23
-RUN go build -o /root/peer-flow
+ENV GOCACHE=/root/.cache/go-build
24
+RUN --mount=type=cache,target="/root/.cache/go-build" go build -o /root/peer-flow
25
26
FROM alpine:3.22@sha256:4bcff63911fcb4448bd4fdacec207030997caf25e9bea4045fa6c8c44de311d1 AS flow-base
27
ENV TZ=UTC
0 commit comments