homebrew ruby:gem命令未找到

ergxz8rk  于 11个月前  发布在  Ruby
关注(0)|答案(1)|浏览(125)

在dockerfile中使用rbenv安装gem:https://github.com/rbenv/rbenv
这些是步骤:

RUN brew install rbenv ruby-build
RUN echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc
RUN rbenv install 3.2.2
RUN rbenv global 3.2.2
ENV PATH="$HOME/.rbenv/versions/3.2.2/bin:$PATH"

字符串
但是,当我尝试运行gem命令时,它给出了错误:gem命令未找到

RUN gem install bundler

d6kp6zgx

d6kp6zgx1#

你可以安装ruby和rubygems

FROM jenkins/inbound-agent:alpine

USER root
RUN apk --no-cache add curl ruby ruby-dev g++ make openssl

RUN gem install bundler

字符串

相关问题