-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from zama-ai/petar/update-docker
Use rust:bullseye for the Docker image
- Loading branch information
Showing
2 changed files
with
11 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
FROM rust:buster as builder | ||
FROM rust:1.70-bullseye AS builder | ||
RUN apt-get update && apt-get install -y clang | ||
|
||
WORKDIR /usr/local/app | ||
ADD . . | ||
RUN cargo build --release | ||
|
||
FROM debian:bullseye-slim | ||
FROM rust:1.70-slim-bullseye | ||
WORKDIR /usr/local/app | ||
RUN apt-get update && apt-get install -y clang | ||
RUN apt-get install libc6 -y | ||
COPY --from=builder /usr/local/app/target/release/fhevm-requires-db . | ||
COPY --from=builder /usr/local/app/Rocket.toml . | ||
|
||
EXPOSE 8001/tcp | ||
|
||
CMD ["/usr/local/app/fhevm-requires-db"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters