forked from zeta-chain/app-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
31 lines (21 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM node:16.14-alpine
ENV SHELL /bin/ash
ENV EXECUTE_PROGRAMMATICALLY=true
RUN apk add --update python3 yarn git nodejs make g++
## Install node modules before the code is copied to the container
WORKDIR /home/zetachain/
COPY package*.json ./
COPY packages/addresses-tools/package.json ./packages/addresses-tools/package.json
COPY packages/zevm-example-contracts/package.json ./packages/zevm-example-contracts/package.json
COPY packages/addresses/package.json packages/addresses/package.json
COPY packages/example-contracts/package.json ./packages/example-contracts/package.json
COPY packages/zeta-app-contracts/package.json ./packages/zeta-app-contracts/package.json
RUN yarn install ; exit 0
COPY . ./
RUN yarn install
RUN yarn add solc@0.5.10 solc@0.6.6 solc@0.7.6 solc@0.8.7
RUN cd packages/example-contracts && npx hardhat compile && cd -
RUN cd packages/zeta-app-contracts && npx hardhat compile && cd -
RUN cd packages/zevm-example-contracts && npx hardhat compile && cd -
WORKDIR /home/zetachain/
ENTRYPOINT ["ash"]