github.com/tw-bc-group/fabric-ca-gm@v0.0.0-20201218004200-3b690512bd5a/images/fabric-ca-gm/Dockerfile.in (about) 1 # 2 # Copyright IBM Corp. All Rights Reserved. 3 # 4 # SPDX-License-Identifier: Apache-2.0 5 # 6 FROM _BASE_NS_/fabric-baseos:_BASE_TAG_ 7 ENV FABRIC_CA_HOME /etc/hyperledger/fabric-ca-server 8 ARG FABRIC_CA_DYNAMIC_LINK=false 9 #RUN mkdir -p $FABRIC_CA_HOME /var/hyperledger/fabric-ca-server 10 COPY payload/fabric-ca-client /usr/local/bin 11 RUN chmod +x /usr/local/bin/fabric-ca-client 12 COPY payload/fabric-ca-server /usr/local/bin 13 RUN chmod +x /usr/local/bin/fabric-ca-server 14 COPY payload/fabric-ca-zh /usr/local/bin 15 RUN chmod +x /usr/local/bin/fabric-ca-zh 16 RUN sed -i '/security/d' /etc/apt/sources.list 17 RUN sed -i 's/archive.ubuntu.com/mirrors.aliyun.com/g' /etc/apt/sources.list 18 RUN apt-get update && apt-get install -y netcat && rm -rf /var/cache/apt 19 20 # libraries needed when image is built dynamically 21 RUN if [ "$FABRIC_CA_DYNAMIC_LINK" = "true" ]; then apt-get install -y libltdl-dev; fi 22 23 # Copy the same certificates that are currently hardcoded into the peers 24 ADD payload/fabric-ca.tar.bz2 $FABRIC_CA_HOME 25 26 EXPOSE 7054 27 CMD fabric-ca-server start -b admin:adminpw