Remove unnecessary cd before installation.
Set DEBIAN_FRONTEND to noninteractive before package installation.
Make Riak's data directory a Docker volume.
Utilize Docker's port subcommand instead of parsing inspect.