The error message find_spec_for_exe': can't find gem oxidized indicates that the gem oxidized is not installed in your Docker container.

To resolve this issue, you can follow these steps:

  1. Update your Gemfile to include the oxidized gem. Open the Gemfile in your project directory and add the following line:

    gem 'oxidized'
    
  2. Run the bundle install command to install the missing gem:

    bundle install
    
  3. If you are using a Dockerfile, make sure to include the necessary commands to install the required dependencies. For example:

    FROM ruby:2.7
    RUN apt-get update && apt-get install -y git
    WORKDIR /app
    COPY Gemfile Gemfile.lock ./
    RUN bundle install --jobs 20 --retry 5
    COPY . .
    
  4. Rebuild your Docker image to include the changes:

    docker build -t my_image .
    
  5. Run your Docker container with the updated image:

    docker run -it my_image
    

By following these steps, you should be able to install the oxidized gem and resolve the find_spec_for_exe': can't find gem oxidized error in your Docker container

docker 容器中安装find_spec_for_exe cant find gem oxidized

原文地址: http://www.cveoy.top/t/topic/h3Mi 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录