forked from AztecProtocol/aztec-connect-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
22 lines (19 loc) · 856 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM ubuntu:focal as builder
RUN apt-get update && apt install -y git curl socat netcat
WORKDIR /usr/src/contracts
RUN git init
COPY . .
RUN ./scripts/install_foundry.sh
ENV PATH="/usr/src/contracts/.foundry/bin:${PATH}"
RUN forge install --no-commit \
https://github.com/foundry-rs/forge-std \
https://github.com/uniswap/v2-core \
https://github.com/uniswap/v2-periphery \
https://github.com/openzeppelin/openzeppelin-contracts \
https://github.com/openzeppelin/openzeppelin-contracts-upgradeable \
https://github.com/AztecProtocol/rollup-encoder@main \
https://github.com/AztecProtocol/aztec-connect-bridges@master
ENV MAINNET_RPC_URL='https://mainnet.infura.io/v3/9928b52099854248b3a096be07a6b23c'
RUN forge clean && forge build && forge test && REFERENCE=true forge test
WORKDIR /usr/src/contracts
CMD ["./scripts/deploy_contracts.sh"]