-
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.
Merge pull request #3 from saint1991/docker-container
add Dockerfile
- Loading branch information
Showing
7 changed files
with
99 additions
and
78 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.vscode | ||
.gitignore | ||
datasets | ||
target | ||
README.md |
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 |
---|---|---|
|
@@ -2,4 +2,5 @@ target | |
gen | ||
*.duckdb | ||
.env | ||
.DS_Store | ||
datasets |
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,22 @@ | ||
# syntax=docker/dockerfile:1 | ||
|
||
FROM rust:1.82-slim-bookworm AS builder | ||
|
||
WORKDIR /home/gduck | ||
RUN apt-get update -y \ | ||
&& apt-get install -y git g++ cmake ninja-build libssl-dev protobuf-compiler | ||
|
||
COPY . /home/gduck | ||
RUN --mount=type=cache,target=/usr/local/cargo/registry \ | ||
--mount=type=cache,target=/home/gduck/target \ | ||
cargo build --release \ | ||
&& mkdir /home/gduck/dist \ | ||
&& cp /home/gduck/target/release/gduck-rpc /home/gduck/dist | ||
|
||
|
||
FROM debian:bookworm-slim | ||
|
||
COPY --from=builder /home/gduck/dist/gduck-rpc /gduck-rpc | ||
ENV RUST_LOG=info RUST_BACKTRACE=1 | ||
|
||
ENTRYPOINT ["/gduck-rpc"] |
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
Oops, something went wrong.