-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
38 lines (20 loc) · 831 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
36
37
38
FROM tozd/sgx:ubuntu-bionic
MAINTAINER [email protected]
RUN apt-get update
RUN apt-get install -y python
RUN apt-get install -y build-essential
RUN apt-get install -y autoconf
RUN apt-get install -y gawk
RUN apt-get install -y gcc
RUN apt-get install -y openssl
RUN apt-get install -y python-protobuf
RUN apt-get install -y python-crypto
RUN apt-get install -y kmod
RUN apt-get install -y vim
RUN apt-get install -y libelf-dev
add graphene /graphene
add linux-sgx-driver /linux-sgx-driver
#Build the driver
RUN wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v4.13.6/linux-headers-4.13.6-041306_4.13.6-041306.201711060046_all.deb
RUN dpkg -i linux-headers-4.13.6-041306_4.13.6-041306.201711060046_all.deb
RUN cd /linux-sgx-driver && make clean && apt-get install -y linux-headers-$(uname -r) && make