- Run as single binary:
docker run -d -p8080:8080 erdivartanovich/rust-listdir-api
This command will spawn the container and run a single api binary called list_dir_api
- Run as separate binaries:
docker run -d -p8080:8080 -e BINARY=actix_api erdivartanovich/rust-listdir-api
This command will spawn the container and run actix_api
as main entry point of the api.
The actix_api
will execute and pass the request to another binary called list_dir
, and then the execution result of list_dir
binary will be piped back to actix_api
and returned as response.