github.com/hyperledger/aries-framework-go@v0.3.2/images/mocks/webhook/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  ARG GO_TAGS
    24  ARG GOPROXY
    25  RUN GO_TAGS=${GO_TAGS} GOPROXY=${GOPROXY} make sample-webhook
    26  
    27  
    28  FROM alpine:${ALPINE_VER} as base
    29  COPY --from=aries-framework /go/src/github.com/hyperledger/aries-framework-go/build/bin/webhook-server /usr/local/bin
    30  CMD WEBHOOK_PORT=${WEBHOOK_PORT} webhook-server