-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b277a2d
commit efe7d10
Showing
2 changed files
with
23 additions
and
1 deletion.
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,17 @@ | ||
# Specify svgbob_cli via Cargo.toml so that Dependabot can help with updates | ||
|
||
[package] | ||
name = "kroki_svgbob_cli" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[[bin]] | ||
name = "svgbob_cli" | ||
path = "/home/rust/.cargo/bin/svgbob" | ||
test = false | ||
bench = false | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
svgbob_cli = "0.5.3" |
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,4 +1,9 @@ | ||
# build static executable binary | ||
FROM ekidd/rust-musl-builder:1.56.1 | ||
COPY Cargo.toml . | ||
|
||
RUN cargo install --quiet --version 0.5.3 svgbob_cli | ||
RUN mkdir -p /home/rust/.cargo/bin/ | ||
RUN cargo fetch --quiet | ||
|
||
# Copy the svgbob file to a consistent directory so that we can use it in the main kroki Dockerfile easily | ||
RUN cp /home/rust/.cargo/registry/index/*/.cache/sv/gb/svgbob /home/rust/.cargo/bin/svgbob |