forked from starkware-libs/cairo-lang
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
35 lines (26 loc) · 962 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
27
28
29
30
31
32
33
34
35
FROM ciimage/python:3.9
RUN apt update
RUN apt install -y make libgmp3-dev g++ python3-pip python3.9-dev python3.9-venv npm
# 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 ./build.sh
WORKDIR /app/build/Release
RUN make all -j8
# Run tests.
RUN ctest -V -j8
WORKDIR /app/
RUN src/starkware/cairo/lang/package_test/run_test.sh
# Build the Visual Studio Code extension.
WORKDIR /app/src/starkware/cairo/lang/ide/vscode-cairo
RUN npm install -g [email protected]
RUN npm install
RUN vsce package
WORKDIR /app/