From 96131d1d5794ad58260c03182e8e1e379a30db6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Vujovi=C4=87?= Date: Mon, 27 May 2024 13:09:09 +0200 Subject: [PATCH] chore: address dockerfile lints (#255) --- 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"