diff --git a/fhevm-engine/coprocessor/Dockerfile b/fhevm-engine/coprocessor/Dockerfile index 2be6e3b4..a4a60291 100644 --- a/fhevm-engine/coprocessor/Dockerfile +++ b/fhevm-engine/coprocessor/Dockerfile @@ -5,22 +5,23 @@ WORKDIR /app # Install dependencies RUN apt-get update && \ - apt-get install -y --no-install-recommends protobuf-compiler && \ + apt-get install -y --no-install-recommends protobuf-compiler=3.12.4* && \ rm -rf /var/lib/apt/lists/* COPY ./fhevm-engine/ ./fhevm-engine/ +COPY ./proto/ ./proto/ WORKDIR /app/fhevm-engine/coprocessor -RUN cargo fetch -RUN SQLX_OFFLINE=true cargo build --release +RUN cargo fetch && \ + SQLX_OFFLINE=true cargo build --release # Stage 2: Final image FROM debian:bullseye-slim RUN useradd -m zama -COPY --from=build /app/fhevm-engine/coprocessor/target/release/coprocessor /usr/local/bin +COPY --from=build /app/fhevm-engine/target/release/coprocessor /usr/local/bin/ RUN chown zama:zama /usr/local/bin/coprocessor && \ chmod 500 /usr/local/bin/coprocessor