github.com/darrenli6/fabric-sdk-example@v0.0.0-20220109053535-94b13b56df8c/images/testenv/Dockerfile.in (about) 1 # Copyright Greg Haskins All Rights Reserved 2 # 3 # SPDX-License-Identifier: Apache-2.0 4 # 5 FROM _NS_/fabric-buildenv:_TAG_ 6 7 # fabric configuration locations 8 ENV FABRIC_CFG_PATH /etc/hyperledger/fabric 9 10 # create needed directories 11 RUN mkdir -p \ 12 $FABRIC_CFG_PATH \ 13 /var/hyperledger/production 14 15 # fabric configuration files 16 ADD payload/sampleconfig.tar.bz2 $FABRIC_CFG_PATH 17 18 # fabric binaries 19 COPY payload/orderer /usr/local/bin 20 COPY payload/peer /usr/local/bin 21 22 # softhsm2 23 COPY payload/install-softhsm2.sh /tmp 24 RUN bash /tmp/install-softhsm2.sh && rm -f install-softhsm2.sh 25 26 # typically, this is mapped to a developer's dev environment 27 WORKDIR /opt/gopath/src/github.com/hyperledger/fabric