Skip to content

Commit

Permalink
chore(ci): add proto
Browse files Browse the repository at this point in the history
  • Loading branch information
0xawaz committed Nov 5, 2024
1 parent 273ce8c commit 2ca0acb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions fhevm-engine/coprocessor/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2ca0acb

Please sign in to comment.