7 lines
348 B
Docker
7 lines
348 B
Docker
FROM golang:1.10-alpine AS builder
|
|
COPY . /go/src/github.com/moby/buildkit
|
|
RUN CGO_ENABLED=0 go build -o /dockerfile-frontend --ldflags '-extldflags "-static"' github.com/moby/buildkit/frontend/dockerfile/cmd/dockerfile-frontend
|
|
|
|
FROM scratch
|
|
COPY --from=builder /dockerfile-frontend /bin/dockerfile-frontend
|
|
ENTRYPOINT ["/bin/dockerfile-frontend"] |