Merge pull request #5 from dubo-dubon-duponey/fix-2

Fix dockerfile build
This commit is contained in:
Andrea Luzzardi 2021-01-11 11:15:57 -08:00 committed by GitHub
commit 858df07a26
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,7 +4,7 @@ FROM golang:1.14-alpine AS build
WORKDIR /src
RUN apk add --no-cache file
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
COPY --from=build /out/dagger /bin/dagger