mirror of https://github.com/docker/compose.git
9 lines
252 B
Docker
9 lines
252 B
Docker
|
FROM golang:1.14.4-alpine AS builder
|
||
|
WORKDIR $GOPATH/src/github.com/docker/ecs-secrets
|
||
|
COPY . .
|
||
|
RUN GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /go/bin/secrets
|
||
|
|
||
|
FROM scratch
|
||
|
COPY --from=builder /go/bin/secrets /secrets
|
||
|
ENTRYPOINT ["/secrets"]
|