Automate tool sub-command to create a docker image for Rocket Project and build/publish them using Alpine OS.
- https://crates.io/crates/cargo-rocket-docker
- https://github.com/Gary-Ascuy/cargo-rocket-docker
- https://github.com/Gary-Ascuy/rust-rest-api
- https://hub.docker.com/repository/docker/garyascuy/cargo-rocket-example
- Rust Nightly Version
- Docker Latest
One-Time Install from Repo
$ cargo install --path .
Development Mode ( Execute Install after each update)
$ cargo watch -x "install --path ."
Check
$ cargo docker --help
# Clone Test Repository
$ git clone https://github.com/Gary-Ascuy/rust-rest-api.git
$ cd rust-rest-api
# Basic Commands
$ cargo docker --build
$ cargo docker --push
# All-In-One Commands
$ cargo docker --build --push
$ cargo docker --all
# Eject Dockerfile && .dockerignore files
$ cargo docker --eject
garyascuy/cargo-rocket-example:1.0.0
OS/ARCH: linux/amd64
SIZE: 4.31 MB
LAST PUSHED: 12 minutes ago by garyascuy
Created by Gary Ascuy and Follow me in LinkedIn or GitHub if you want :P.