f5ff33d21f
* Oracle abi taken from compilation. Moved project setup from dockerfile to package.json scripts * Use compile:contracts script instead of repeated command * Update imports to root contracts instead of copying * Rule for importing unpublished. Lint fix * Remove prepare:contracts and import:contracts * Disabled ModuleScopePlugin in order to be able to import contracts outside src dir * Fix for rm removing . and .. on linux
25 lines
727 B
Docker
25 lines
727 B
Docker
FROM node:8
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install -y build-essential
|
|
RUN apt-get install -y libc6-dev
|
|
RUN apt-get install -y libc6-dev-i386
|
|
RUN apt-get install -y wget
|
|
RUN apt-get clean
|
|
|
|
WORKDIR /mono
|
|
COPY package.json .
|
|
COPY contracts/package.json ./contracts/
|
|
COPY oracle/package.json ./oracle/
|
|
COPY yarn.lock .
|
|
RUN yarn install --production
|
|
|
|
COPY ./contracts ./contracts
|
|
RUN yarn run compile:contracts
|
|
RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./build ./contracts/
|
|
|
|
COPY ./oracle ./oracle
|
|
WORKDIR /mono/oracle
|
|
CMD echo "To start a bridge process run:" \
|
|
"VALIDATOR_ADDRESS=<validator address> VALIDATOR_ADDRESS_PRIVATE_KEY=<validator address private key> docker-compose up -d --build"
|