forked from litentry/tee-worker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
23 lines (17 loc) · 867 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
FROM integritee/integritee-dev:0.1.9
LABEL maintainer="[email protected]"
# By default we warp the service
ARG BINARY_FILE=integritee-service
COPY bin/enclave.signed.so bin/end.rsa bin/end.fullchain /usr/local/bin/
COPY bin/${BINARY_FILE} /usr/local/bin/integritee
RUN chmod +x /usr/local/bin/integritee
WORKDIR /usr/local/bin
RUN touch spid.txt key.txt
RUN if [[ "x$BINARY_FILE" != "xintegritee-client" ]] ; then ./integritee init-shard; fi
RUN if [[ "x$BINARY_FILE" != "xintegritee-client" ]] ; then ./integritee shielding-key; fi
RUN if [[ "x$BINARY_FILE" != "xintegritee-client" ]] ; then ./integritee signing-key; fi
RUN if [[ "x$BINARY_FILE" != "xintegritee-client" ]] ; then ./integritee mrenclave > ~/mrenclave.b58; fi
# checks
RUN ldd /usr/local/bin/integritee && \
/usr/local/bin/integritee --version
ENTRYPOINT ["/usr/local/bin/integritee"]