-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
33 lines (27 loc) · 1.22 KB
/
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
FROM alpine/git:latest AS pull_marblerun
RUN git clone https://github.com/edgelesssys/marblerun.git /marblerun
FROM ghcr.io/edgelesssys/edgelessrt-dev AS build-premain
COPY --from=pull_marblerun /marblerun /premain
WORKDIR /premain/build
RUN cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo ..
RUN make premain-libos
FROM gramineproject/gramine:v1.5 AS release
RUN apt update && \
apt install -y libssl-dev gnupg software-properties-common wget
RUN wget 'https://storage.googleapis.com/tensorflow-serving-apt/pool/tensorflow-model-server-2.6.3/t/tensorflow-model-server/tensorflow-model-server_2.6.3_all.deb'
RUN apt-get update && apt-get install -y \
wget \
libsgx-quote-ex-dev \
libsgx-aesm-launch-plugin \
libsgx-dcap-default-qpl \
build-essential \
libprotobuf-c-dev \
libstdc++6 \
./tensorflow-model-server_2.6.3_all.deb && \
apt-get clean -y && apt-get autoclean -y && apt-get autoremove -y
COPY ./gramine-files/ /tensorflow-marblerun
COPY --from=build-premain /premain/build/premain-libos /tensorflow-marblerun
WORKDIR /tensorflow-marblerun
RUN --mount=type=secret,id=signingkey,dst=/tensorflow-marblerun/signing_key.pem,required=true \
make DEBUG=0
ENTRYPOINT [ "/tensorflow-marblerun/start.sh" ]