29 lines
511 B
Docker
29 lines
511 B
Docker
|
FROM node:8
|
||
|
|
||
|
RUN mkdir /stuff
|
||
|
WORKDIR /stuff
|
||
|
|
||
|
COPY package.json .
|
||
|
COPY package-lock.json .
|
||
|
|
||
|
RUN git clone https://github.com/poanetwork/poa-bridge-contracts.git
|
||
|
|
||
|
RUN mkdir submodules && \
|
||
|
mv poa-bridge-contracts submodules && \
|
||
|
cd submodules/poa-bridge-contracts && \
|
||
|
git fetch && \
|
||
|
git checkout 2.2.0
|
||
|
|
||
|
RUN npm install --unsafe-perm
|
||
|
|
||
|
RUN cd submodules/poa-bridge-contracts && \
|
||
|
npm install && \
|
||
|
./node_modules/.bin/truffle compile && \
|
||
|
cd deploy && \
|
||
|
npm install
|
||
|
|
||
|
ADD . .
|
||
|
|
||
|
|
||
|
CMD ["npm", "start"]
|