github.com/hyperledger/aries-framework-go@v0.3.2/images/agent-rest/Dockerfile (about)

     1  #
     2  # Copyright SecureKey Technologies Inc. All Rights Reserved.
     3  #
     4  # SPDX-License-Identifier: Apache-2.0
     5  #
     6  
     7  ARG GO_VER
     8  ARG ALPINE_VER
     9  
    10  FROM golang:${GO_VER}-alpine${ALPINE_VER} as golang
    11  RUN apk add --no-cache \
    12  	gcc \
    13  	musl-dev \
    14  	git \
    15  	libtool \
    16  	bash \
    17  	make;
    18  ADD . $GOPATH/src/github.com/hyperledger/aries-framework-go
    19  WORKDIR $GOPATH/src/github.com/hyperledger/aries-framework-go
    20  ENV EXECUTABLES go git
    21  
    22  FROM golang as aries-framework
    23  LABEL org.opencontainers.image.source https://github.com/hyperledger/aries-framework-go
    24  
    25  ARG GO_TAGS
    26  ARG GOPROXY
    27  RUN GO_TAGS=${GO_TAGS} GOPROXY=${GOPROXY} make agent-rest
    28  
    29  
    30  FROM alpine:${ALPINE_VER} as base
    31  RUN apk add -U --no-cache ca-certificates
    32  COPY --from=aries-framework /go/src/github.com/hyperledger/aries-framework-go/build/bin/aries-agent-rest /usr/local/bin
    33  ENTRYPOINT ["aries-agent-rest"]