From 9f84939c1e3e62ec75e045c40ee31eee453e0160 Mon Sep 17 00:00:00 2001 From: Petar Vujovic Date: Sat, 25 May 2024 12:38:13 +0700 Subject: [PATCH] chore: address dockerfile lints --- Dockerfile | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18f20fbc3..653571ec4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,14 @@ ENV DEBIAN_FRONTEND=noninteractive ARG BUILD_FLAGS="" # risc0 dependencies -# RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash -# RUN cargo binstall -y --force cargo-risczero -# RUN cargo risczero install +# RUN curl -L --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/cargo-bins/cargo-binstall/main/install-from-binstall-release.sh | bash && \ +# cargo binstall -y --force cargo-risczero && \ +# cargo risczero install WORKDIR /opt/raiko COPY . . RUN cargo build --release ${BUILD_FLAGS} --features "sgx" --features "docker_build" - FROM gramineproject/gramine:1.6-jammy as runtime ENV DEBIAN_FRONTEND=noninteractive WORKDIR /opt/raiko @@ -29,8 +28,8 @@ RUN apt-get update && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -RUN sed -i 's/#default quoting type = ecdsa_256/default quoting type = ecdsa_256/' /etc/aesmd.conf -RUN sed -i 's/,"use_secure_cert": true/,"use_secure_cert": false/' /etc/sgx_default_qcnl.conf +RUN sed -i 's/#default quoting type = ecdsa_256/default quoting type = ecdsa_256/' /etc/aesmd.conf && \ + sed -i 's/,"use_secure_cert": true/,"use_secure_cert": false/' /etc/sgx_default_qcnl.conf RUN mkdir -p \ ./bin \ @@ -49,8 +48,8 @@ COPY --from=builder /opt/raiko/docker/enclave-key.pem /root/.config/gramine/encl ARG EDMM=0 ENV EDMM=${EDMM} -RUN cd ./bin && \ - gramine-manifest -Dlog_level=error -Ddirect_mode=0 -Darch_libdir=/lib/x86_64-linux-gnu/ ../provers/sgx/config/sgx-guest.local.manifest.template sgx-guest.manifest && \ +WORKDIR /opt/raiko/bin +RUN gramine-manifest -Dlog_level=error -Ddirect_mode=0 -Darch_libdir=/lib/x86_64-linux-gnu/ ../provers/sgx/config/sgx-guest.local.manifest.template sgx-guest.manifest && \ gramine-sgx-sign --manifest sgx-guest.manifest --output sgx-guest.manifest.sgx && \ gramine-sgx-sigstruct-view "sgx-guest.sig"