File tree 2 files changed +31
-22
lines changed
2 files changed +31
-22
lines changed Original file line number Diff line number Diff line change @@ -22,23 +22,30 @@ RUN apt-get update -y && \
22
22
less \
23
23
net-tools \
24
24
iputils-ping \
25
- build-essential \
26
25
git \
27
- cmake \
28
- python3 \
29
- python3-pip \
30
- curl
26
+ curl \
27
+ build-essential \
28
+ cmake=3.22.1-1ubuntu1.22.04.1 \
29
+ python3=3.10.6-1~22.04 \
30
+ python3-pip=22.0.2+dfsg-1ubuntu0.4
31
31
32
32
# SSH Server
33
33
RUN apt-get update -y && \
34
34
apt-get install -y \
35
35
openssh-server
36
36
RUN rm /etc/ssh/ssh_host_*
37
37
38
+ # #########
39
+ # SGX Linux SDK
40
+ # #########
41
+
42
+ ARG LINUX_SGX_VER=2.23
43
+ ARG SGX_SDK_VER=${LINUX_SGX_VER}.100.2
44
+
38
45
# SGX PSW
39
46
RUN curl \
40
47
-o /opt/sgx_debian_local_repo.tgz \
41
- -fSL https://download.01.org/intel-sgx/sgx-linux/2.23 /distro/ubuntu22.04-server/sgx_debian_local_repo.tgz
48
+ -fSL https://download.01.org/intel-sgx/sgx-linux/${LINUX_SGX_VER} /distro/ubuntu22.04-server/sgx_debian_local_repo.tgz
42
49
43
50
RUN tar -xzf /opt/sgx_debian_local_repo.tgz -C /opt
44
51
RUN echo 'deb [arch=amd64 trusted=yes] file:/opt/sgx_debian_local_repo/ jammy main' > /etc/apt/sources.list.d/intel-sgx.list
@@ -58,7 +65,7 @@ RUN chmod 755 /etc/init.d/aesmd
58
65
# SGX SDK
59
66
RUN curl \
60
67
-o /opt/sgx_linux_x64_sdk.bin \
61
- -fSL https://download.01.org/intel-sgx/sgx-linux/2.23 /distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.23.100.2 .bin
68
+ -fSL https://download.01.org/intel-sgx/sgx-linux/${LINUX_SGX_VER} /distro/ubuntu22.04-server/sgx_linux_x64_sdk_${SGX_SDK_VER} .bin
62
69
RUN chmod 755 /opt/sgx_linux_x64_sdk.bin
63
70
RUN /opt/sgx_linux_x64_sdk.bin --prefix /opt/intel
64
71
Original file line number Diff line number Diff line change @@ -11,36 +11,38 @@ ENV DEBIAN_FRONTEND=noninteractive
11
11
# ############################## Install packages ###############################
12
12
RUN apt-get update -y && \
13
13
apt-get install -y \
14
- python3 \
15
- python3-pip \
16
- golang
14
+ python3=3.10.6-1~22.04 \
15
+ python3-pip=22.0.2+dfsg-1ubuntu0.4 \
16
+ golang=2:1.18~0ubuntu2
17
17
18
18
# Python packages
19
19
RUN python3 -m pip install --upgrade pip
20
20
RUN python3 -m pip install \
21
- web3==6.2.0 \
22
- requests==2.28.2 \
23
- numpy==1.24.3 \
24
- matplotlib==3.7.1 \
25
- plotly==5.14.1 \
21
+ web3==6.15.1 \
22
+ requests==2.31.0 \
23
+ numpy==1.26.4 \
24
+ matplotlib==3.8.2 \
25
+ plotly==5.18.0 \
26
26
kaleido==0.2.1 \
27
- pandas==2.0.1 \
28
- cryptography==41 .0.3
27
+ pandas==2.2.0 \
28
+ cryptography==42 .0.2
29
29
30
30
# Node.js
31
31
RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | gpg --dearmor > /etc/apt/trusted.gpg.d/nodesource.gpg
32
- RUN echo "deb https://deb.nodesource.com/node_18 .x jammy main" >> /etc/apt/sources.list.d/nodesource.list
33
- RUN echo "deb-src https://deb.nodesource.com/node_18 .x jammy main" >> /etc/apt/sources.list.d/nodesource.list
32
+ RUN echo "deb https://deb.nodesource.com/node_20 .x jammy main" >> /etc/apt/sources.list.d/nodesource.list
33
+ RUN echo "deb-src https://deb.nodesource.com/node_20 .x jammy main" >> /etc/apt/sources.list.d/nodesource.list
34
34
RUN apt update -y
35
- RUN apt install -y nodejs
35
+ RUN apt install -y nodejs=20.5.1-deb-1nodesource1
36
36
37
37
# Node.js packages
38
- RUN npm install -g ganache@7.8.0
38
+ RUN npm install -g ganache@7.9.2
39
39
40
40
# Solc compiler
41
- RUN curl -fsSL -o /bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.20 /solc-static-linux
41
+ RUN curl -fsSL -o /bin/solc https://github.com/ethereum/solidity/releases/download/v0.8.24 /solc-static-linux
42
42
RUN chmod 755 /bin/solc
43
43
44
+ # APT clean up
45
+ RUN apt-get autoremove -y
44
46
RUN apt-get clean all
45
47
# ###############################################################################
46
48
You can’t perform that action at this time.
0 commit comments