Skip to content

Commit

Permalink
Use cargo.toml to install svgbob
Browse files Browse the repository at this point in the history
  • Loading branch information
ssaraswati committed Aug 28, 2022
1 parent b277a2d commit 5ea403e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions server/ops/docker/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Specify svgbob_cli via Cargo.toml so that Renovate can help with updates

[dependencies]
svgbob_cli = "0.5.3"
5 changes: 4 additions & 1 deletion server/ops/docker/build-static-svgbob
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# build static executable binary
FROM ekidd/rust-musl-builder:1.56.1
COPY Cargo.toml .

RUN SVGBOB_VERSION=`cat Cargo.toml | sed -nr '/svgbob_cli =/{s/svgbob_cli = "([0-9]+.[0-9]+.[0-9]+)"/\1/;p;}'` \
&& cargo install --quiet --version $SVGBOB_VERSION svgbob_cli

RUN cargo install --quiet --version 0.5.3 svgbob_cli

0 comments on commit 5ea403e

Please sign in to comment.