github.com/docker/app@v0.9.1-beta3.0.20210611140623-a48f773ab002/Dockerfile.invocation-image (about)

     1  ARG ALPINE_VERSION=3.11.5
     2  
     3  FROM golang:1.13.10 AS build
     4  
     5  RUN apt-get update -qq && apt-get install -y -q --no-install-recommends \
     6    coreutils \
     7    util-linux \
     8    uuid-runtime
     9  
    10  WORKDIR /go/src/github.com/docker/app/
    11  
    12  COPY . .
    13  ARG TAG="unknown"
    14  RUN make BUILD_TAG=${BUILD_TAG} TAG=${TAG} bin/cnab-run
    15  
    16  # local cnab invocation image
    17  FROM alpine:${ALPINE_VERSION} as invocation
    18  RUN apk add --no-cache ca-certificates && adduser -S cnab
    19  USER cnab
    20  COPY --from=build /go/src/github.com/docker/app/bin/cnab-run /cnab/app/run
    21  WORKDIR /cnab/app
    22  CMD /cnab/app/run