-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Rintaro Okamura <[email protected]>
- Loading branch information
Showing
6 changed files
with
73 additions
and
25 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
FROM rust:latest AS builder | ||
|
||
RUN apt update \ | ||
&& apt install -y \ | ||
build-essential \ | ||
cmake \ | ||
clang \ | ||
g++ \ | ||
gcc \ | ||
git \ | ||
libclang-dev \ | ||
llvm-dev \ | ||
&& apt autoclean -y \ | ||
&& apt autoremove -y \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN rustup component add rustfmt | ||
|
||
WORKDIR /app | ||
|
||
COPY Makefile . | ||
COPY build.rs . | ||
COPY Cargo.toml . | ||
COPY Cargo.lock . | ||
COPY src src | ||
|
||
RUN make build/release | ||
|
||
FROM gcr.io/distroless/cc AS base | ||
|
||
COPY --from=builder /app/target/release/vald-agent-ngt-rs /vald-agent-ngt-rs | ||
COPY --from=builder /app/target/release/build/ngt-sys-*/out/lib/* /usr/local/lib/ | ||
|
||
ENV LD_LIBRARY_PATH=/usr/local/lib | ||
|
||
ENTRYPOINT [ "/vald-agent-ngt-rs" ] |
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
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
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