Skip to content

Commit

Permalink
chore(docker): speed up docker build (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
johntaiko authored May 24, 2024
1 parent 65c04ef commit 486d033
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,6 @@ FROM rust:1.75.0 as builder

ENV DEBIAN_FRONTEND=noninteractive
ARG BUILD_FLAGS=""
RUN apt-get update && \
apt-get install -y \
cmake \
libclang-dev && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

# 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
Expand All @@ -23,18 +17,14 @@ FROM gramineproject/gramine:1.6-jammy as runtime
ENV DEBIAN_FRONTEND=noninteractive
WORKDIR /opt/raiko

RUN curl -o setup.sh -sL https://deb.nodesource.com/setup_18.x && \
chmod a+x setup.sh && \
./setup.sh && \
apt-get update && \
RUN apt-get update && \
apt-get install -y \
cracklib-runtime \
libsgx-dcap-default-qpl \
libsgx-dcap-ql \
libsgx-urts \
sgx-pck-id-retrieval-tool \
jq \
sudo && \
jq &&\
apt-get clean && \
rm -rf /var/lib/apt/lists/*

Expand Down

0 comments on commit 486d033

Please sign in to comment.