github.com/pvitto98/fabric@v2.1.1+incompatible/images/ccenv/Dockerfile (about)

     1  # Copyright IBM Corp. All Rights Reserved.
     2  #
     3  # SPDX-License-Identifier: Apache-2.0
     4  
     5  ARG GO_VER
     6  ARG ALPINE_VER
     7  FROM golang:${GO_VER}-alpine${ALPINE_VER}
     8  RUN apk add --no-cache \
     9  	g++ \
    10  	gcc \
    11  	git \
    12  	musl-dev
    13  
    14  RUN mkdir -p /chaincode/output /chaincode/input
    15  RUN addgroup -g 500 chaincode && adduser -u 500 -D -h /home/chaincode -G chaincode chaincode
    16  RUN chown -R chaincode:chaincode /chaincode
    17  USER chaincode