forked from IBM/securitization_blockchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
16 lines (15 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM ubuntu:16.04
RUN apt-get update -y && \
apt-get install git curl -y && \
apt-get install build-essential python -y
# build image from local repo
RUN mkdir -p /root/securitization_blockchain/
COPY . /root/securitization_blockchain/.
# build image from git repo
# RUN git clone https://github.com/IBM/securitization_blockchain.git
RUN /root/securitization_blockchain/install_deps.sh
ENV PATH="/root/.nvm/versions/node/v8.9.0/bin/:${PATH}"
ENV PORT="30000"
# ENTRYPOINT /root/securitization_blockchain/sc-ui/
# on successful build, run with
# docker run -it -p 30000:30000 -p 30001:30001 -v /var/run/docker.sock:/var/run/docker.sock -v /usr/local/bin/docker:/usr/local/bin/docker securitization_blockchain bash -c 'cd /root/securitization_blockchain/sc-ui && npm start | PORT=3001 node react-backend/bin/www'