github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-supply-chain-master/ledger_sync/Dockerfile-installed (about)

     1  # Copyright 2017 Intel Corporation
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  # ------------------------------------------------------------------------------
    15  
    16  # Description:
    17  #   Builds server and client node dependencies, creating a server image
    18  #   which can be run with root context
    19  
    20  FROM ubuntu:xenial
    21  
    22  LABEL "install-type"="mounted"
    23  
    24  # Install Node and Ubuntu dependencies
    25  RUN apt-get update && apt-get install -y -q --no-install-recommends \
    26      curl \
    27      ca-certificates \
    28      pkg-config \
    29      build-essential \
    30      libzmq3-dev \
    31   && curl -s -S -o /tmp/setup-node.sh https://deb.nodesource.com/setup_8.x \
    32   && chmod 755 /tmp/setup-node.sh \
    33   && /tmp/setup-node.sh \
    34   && apt-get install nodejs -y -q \
    35   && rm /tmp/setup-node.sh \
    36   && apt-get clean \
    37   && rm -rf /var/lib/apt/lists/* \
    38   && npm install -g prebuild-install
    39  
    40  WORKDIR /sawtooth-supply-chain/ledger_sync
    41  
    42  COPY ledger_sync/package.json .
    43  RUN npm install
    44  
    45  COPY protos/ ../protos/
    46  COPY ledger_sync/ .
    47  
    48  EXPOSE 3000/tcp
    49  
    50  CMD ["/usr/bin/node", "index.js"]