Replies: 2 comments
-
Why the gem command is not working? Can anyone help, please? |
Beta Was this translation helpful? Give feedback.
-
I'm not a Docker expert (I barely ever use it), but I'm pretty sure that the command invoked by
Also, the PATH line should not have the
See https://github.com/rbenv/rbenv/wiki/Deploying-with-rbenv for more information. Note that if you're only going to have 1 Ruby version inside your Docker container, it makes little sense to install a version manager like rbenv. You might have an easier time just basing your Docker imagine on one of the available Ruby images:
But, I'm not entirely sure why
Let us know if you find out! |
Beta Was this translation helpful? Give feedback.
-
Installing gem using rbenv in a dockerfile.
These are the steps:
But, when I try to run gem command it's giving error: gem command not found.
Beta Was this translation helpful? Give feedback.
All reactions