github.com/shyftnetwork/go-empyrean@v1.8.3-0.20191127201940-fbfca9338f04/docker/production/shyftUi/Dockerfile (about)

     1  FROM node:8.11.3-alpine
     2  
     3  # set working directory
     4  RUN echo `cd usr && ls -a`
     5  RUN mkdir -p usr/src/shyftBlockExplorerUI
     6  WORKDIR /usr/src/shyftBlockExplorerUI
     7  
     8  # add `/usr/src/app/node_modules/.bin` to $PATH
     9  ENV PATH /usr/src/shyftBlockExplorerUI/node_modules/.bin:$PATH
    10  
    11  # install and cache app dependencies
    12  COPY ./shyftBlockExplorerUI/package.json /usr/src/shyftBlockExplorerUI/package.json
    13  RUN npm install
    14  # RUN npm add react-scripts@1.1.1 -g --silent
    15  COPY ./shyftBlockExplorerUI/src /usr/src/shyftBlockExplorerUI/src
    16  COPY ./shyftBlockExplorerUI/scripts /usr/src/shyftBlockExplorerUI/scripts
    17  COPY ./shyftBlockExplorerUI/config /usr/src/shyftBlockExplorerUI/config
    18  COPY ./shyftBlockExplorerUI/public /usr/src/shyftBlockExplorerUI/public
    19  
    20  # start app
    21  
    22  EXPOSE 3000
    23  
    24  CMD ["npm", "start"]
    25