https://github.com/noahgift/rust-docker-cli
An example of Rust command-line tool running inside a Docker container
https://github.com/noahgift/rust-docker-cli
Last synced: 5 months ago
JSON representation
An example of Rust command-line tool running inside a Docker container
- Host: GitHub
- URL: https://github.com/noahgift/rust-docker-cli
- Owner: noahgift
- License: cc0-1.0
- Created: 2023-01-01T18:49:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-01T21:21:27.000Z (over 3 years ago)
- Last Synced: 2025-04-08T14:37:57.531Z (over 1 year ago)
- Language: Rust
- Size: 12.7 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/noahgift/rust-docker-cli/actions/workflows/lint.yml)
[](https://github.com/noahgift/rust-docker-cli/actions/workflows/tests.yml)
[](https://github.com/noahgift/rust-docker-cli/actions/workflows/rustfmt.yml)
# rust command-line tool in Docker container
An example of a tiny Rust command-line tool in a Docker container.
About 83.8MB in size.
## Usage
To build the container and run the application:
```bash
docker build -t marco-polo .
docker run --rm -it marco-polo --help
```
You can see full invocation here:
```bash
➜ rust-docker-cli git:(main) ✗ docker run --rm -it marco-polo play --name Marco
Polo
```
To find the size of the application:
```bash
docker image ls | grep marco-polo
```
```bash
marco-polo latest 7da8a3444176 15 minutes ago 83.8MB
```
## References
* [rust-cli-template](https://github.com/kbknapp/rust-cli-template)
* [Simplify Rust Deploy](https://www.docker.com/blog/simplify-your-deployments-using-the-rust-official-image/)