github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/build-blockchain-insurance-app-master/web/Dockerfile (about) 1 FROM docker.io/library/node:8.11.3 2 3 ENV NODE_ENV production 4 ENV PORT 3000 5 ENV DOCKER_SOCKET_PATH /host/var/run/docker.sock 6 ENV DOCKER_CCENV_IMAGE hyperledger/fabric-ccenv:x86_64-1.1.0 7 8 RUN mkdir /app 9 COPY . /app 10 WORKDIR /app 11 RUN apt update && apt install -y build-essential \ 12 && npm i && npm i --only=dev \ 13 && npm run build \ 14 && npm prune \ 15 && apt remove -y build-essential 16 17 EXPOSE 3000 18 CMD ["npm", "run", "serve"]