Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add docker image #94

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM ekidd/rust-musl-builder:stable AS builder
RUN cargo install svgbob_cli --version 0.6.6 --target x86_64-unknown-linux-musl

FROM alpine:3.15
COPY --from=builder /home/rust/.cargo/bin/svgbob_cli /usr/local/bin
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,23 @@ Svgbob provides a cli which takes text as an input and creates an svg image as a
[Specification](https://ivanceras.github.io/content/Svgbob/Specification.html)

<a href="https://liberapay.com/ivanceras/donate"><img alt="Donate using Liberapay" src="https://liberapay.com/assets/widgets/donate.svg"></a>

## Getting started

```powershell
# To try svgbob without installation run via Docker
docker build -t svgbob:local .
docker run --rm svgbob:local svgbob_cli -s "
.-------------------.
| Hello svgbob ! |
'-------------------'

.-. .-. .-. .-. .-. .-.
| | | | | | | | | | | |
.---------. .--+---+--. .--+---+--. .--| |--. .--+ +--. .------|--.
| | | | | | | | | | | | | | | | | |
'---------' '--+---+--' '--+---+--' '--| |--' '--+ +--' '--|------'
| | | | | | | | | | | |
'-' '-' '-' '-' '-' '-'
" > ./example.svg
```