diff --git a/Dockerfile b/Dockerfile index 15d005f4..89cc7def 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM golang:1.16.2-alpine AS build WORKDIR /src RUN apk add --no-cache file +ENV GOMODCACHE /root/.cache/gocache RUN --mount=target=. --mount=target=/root/.cache,type=cache \ CGO_ENABLED=0 go build -o /out/dagger ./cmd/dagger && file /out/dagger | grep "statically linked"