Skip to content

Commit 37e1137

Browse files
committed
- added build-time dependency
- removed more unncesessary commands
1 parent 4c58a31 commit 37e1137

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

Diff for: intel-sgx/ppid-decryption-tool/Dockerfile

+13-10
Original file line numberDiff line numberDiff line change
@@ -13,22 +13,25 @@ RUN apt-get update && apt-get install -y \
1313
gnupg \
1414
wget
1515

16-
RUN echo 'deb [arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu jammy main' > /etc/apt/sources.list.d/intel-sgx.list
17-
RUN wget -qO - https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | apt-key add -
18-
RUN apt-get update
19-
2016
# App build time dependencies
17+
RUN apt-get update
2118
RUN apt-get install -y build-essential
2219

2320
WORKDIR /opt/intel
24-
RUN wget https://download.01.org/intel-sgx/sgx-linux/2.22/distro/ubuntu22.04-server/sgx_linux_x64_sdk_2.22.100.3.bin
25-
RUN chmod +x sgx_linux_x64_sdk_2.22.100.3.bin
26-
RUN echo 'yes' | ./sgx_linux_x64_sdk_2.22.100.3.bin
21+
RUN wget https://download.01.org/intel-sgx/sgx-linux/2.25/distro/ubuntu24.04-server/sgx_linux_x64_sdk_2.25.100.3.bin
22+
RUN chmod +x sgx_linux_x64_sdk_2.25.100.3.bin
23+
RUN echo 'yes' | ./sgx_linux_x64_sdk_2.25.100.3.bin
2724

28-
# Setup aesmd service in container
25+
# Install SGX runtime libraries
2926
USER root
30-
RUN bash -c 'mkdir /var/run/aesmd'
31-
RUN bash -c 'chown -c ppid-tool /var/run/aesmd'
27+
RUN apt-get install -y sudo
28+
RUN echo 'deb [signed-by=/etc/apt/keyrings/intel-sgx-keyring.asc arch=amd64] https://download.01.org/intel-sgx/sgx_repo/ubuntu noble main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
29+
RUN wget https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key
30+
RUN cat intel-sgx-deb.key | sudo tee /etc/apt/keyrings/intel-sgx-keyring.asc > /dev/null
31+
RUN apt-get update
32+
RUN apt-get upgrade -y
33+
RUN apt-get update
34+
RUN apt-get install -y libsgx-urts
3235

3336
# Preparing to build PCKIDRetrievalTool
3437
FROM sgx_sdk

0 commit comments

Comments
 (0)