2019-06-14 16:50:22 +03:00
|
|
|
FROM node:8
|
|
|
|
|
|
|
|
WORKDIR /mono
|
|
|
|
COPY package.json .
|
|
|
|
COPY contracts/package.json ./contracts/
|
2019-07-15 19:07:11 +03:00
|
|
|
COPY commons/package.json ./commons/
|
2019-06-14 16:50:22 +03:00
|
|
|
COPY ui/package.json ./ui/
|
|
|
|
COPY ui/lib/web3-eth/index.js ./ui/lib/web3-eth/index.js
|
|
|
|
COPY yarn.lock .
|
|
|
|
RUN yarn install --production --frozen-lockfile
|
|
|
|
|
|
|
|
COPY ./contracts ./contracts
|
|
|
|
RUN yarn run compile:contracts
|
|
|
|
RUN mv ./contracts/build ./ && rm -rf ./contracts/* ./contracts/.[!.]* && mv ./build ./contracts/
|
|
|
|
|
2019-07-15 19:07:11 +03:00
|
|
|
COPY ./commons ./commons
|
|
|
|
|
2019-06-14 16:50:22 +03:00
|
|
|
COPY ./ui ./ui
|
|
|
|
WORKDIR /mono/ui
|
|
|
|
CMD echo "To start a UI application run:" \
|
|
|
|
"yarn start"
|