Fix dockerfile build

Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
dubo-dubon-duponey 2021-01-11 11:10:07 -08:00
parent 8730a7e03e
commit 9e72eff547
No known key found for this signature in database
GPG Key ID: C3B96779C681DA56

View File

@ -4,7 +4,7 @@ FROM golang:1.14-alpine AS build
WORKDIR /src WORKDIR /src
RUN apk add --no-cache file RUN apk add --no-cache file
RUN --mount=target=. --mount=target=/root/.cache,type=cache \ RUN --mount=target=. --mount=target=/root/.cache,type=cache \
CGO_ENABLED=0 go build -o /out/dagger ./cmd/dagger-frontend && file /out/dagger | grep "statically linked" CGO_ENABLED=0 go build -o /out/dagger ./cmd/dagger && file /out/dagger | grep "statically linked"
FROM scratch FROM scratch
COPY --from=build /out/dagger /bin/dagger COPY --from=build /out/dagger /bin/dagger