forked from starknet-io/starkgate-contracts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (19 loc) · 747 Bytes
/
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
FROM ciimage/python:3.9 as base_image
RUN apt update && apt install -y make libgmp3-dev g++ python3-pip python3.9-dev npm unzip
# Installing cmake via apt doesn't bring the most up-to-date version.
RUN pip install cmake==3.22
# Install solc and ganache
RUN curl https://binaries.soliditylang.org/linux-amd64/solc-linux-amd64-v0.6.12+commit.27d51765 -o /usr/local/bin/solc-0.6.12
RUN echo 'f6cb519b01dabc61cab4c184a3db11aa591d18151e362fcae850e42cffdfb09a /usr/local/bin/solc-0.6.12' | sha256sum --check
RUN chmod +x /usr/local/bin/solc-0.6.12
RUN npm install -g --unsafe-perm [email protected]
COPY . /app/
# Build.
WORKDIR /app/
RUN rm -rf build
RUN ./build.sh
FROM base_image
# Run tests.
WORKDIR /app/build/Release
RUN ctest -V
WORKDIR /app/