[RustWebApp] Find binary name from Cargo.toml #105
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Current behavior
When generating the Dockerfile to build & run a Rust web app, the application name (e.g.
rust-webapp) configured by the user is the one used to copy the built binary. Which forces the users to reuse the same app name as the binary name.Expected behavior
The app name shouldn't be used to find the binary. Instead, an option is to use the
Cargo.tomlfile to extract the project name and use it to find the built binary.Ref.