Fix dockerfile build
Signed-off-by: dubo-dubon-duponey <dubodubonduponey+github@pm.me>
This commit is contained in:
parent
8730a7e03e
commit
9e72eff547
@ -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
|
||||||
|
Reference in New Issue
Block a user