-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (25 loc) · 1004 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 initc3/teaclave-sgx-sdk:e8a9fc22
RUN add-apt-repository -y ppa:ethereum/ethereum
RUN apt-get update && apt-get install -y \
python3-dev \
python3-pip \
libssl-dev \
solc \
&& rm -rf /var/lib/apt/lists/*
RUN pip3 install requests pycryptodome cython py-solc-x web3 ipython
ENV SGX_MODE=SW
ENV SGX_SDK_RUST=/root/sgx/incubator-teaclave-sgx-sdk-master
RUN git clone https://github.com/apache/incubator-teaclave-sgx-sdk.git \
/root/sgx/incubator-teaclave-sgx-sdk-master \
&& cd /root/sgx/incubator-teaclave-sgx-sdk-master \
&& git checkout e8a9fc22
WORKDIR /root/sgx/samplecode/pktransfer
COPY ./pktransfer .
WORKDIR /root/sgx/samplecode/pktransfer/solidity
RUN git clone https://github.com/OpenZeppelin/openzeppelin-contracts.git \
&& cd /root/sgx/samplecode/pktransfer/solidity/openzeppelin-contracts \
&& git checkout 52eeebe
WORKDIR /root/sgx/samplecode/pktransfer
RUN /bin/bash -c "source /opt/sgxsdk/environment; \
source /root/.cargo/env; \
make clean && make;"