Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Apply some dockerfile best practices #15

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
FROM rust:1.70 as builder

WORKDIR /usr/local/app/fhevm-tfhe-cli
ADD . .
COPY . .
RUN cargo build --release --features tfhe/seeder_unix

FROM debian:bullseye-slim
WORKDIR /usr/local/app
RUN apt-get install libc6 -y

RUN apt-get update && apt-get install -y \
libc6 \
&& rm -rf /var/lib/apt/lists/*

COPY --from=builder /usr/local/app/fhevm-tfhe-cli/target/release/fhevm-tfhe-cli /usr/local/bin
ENV RUST_LOG=info

Expand Down