docker 容器中安装find_spec_for_exe cant find gem oxidized
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:
-
Update your Gemfile to include the
oxidizedgem. Open the Gemfile in your project directory and add the following line:gem 'oxidized' -
Run the
bundle installcommand to install the missing gem:bundle install -
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 . . -
Rebuild your Docker image to include the changes:
docker build -t my_image . -
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
原文地址: http://www.cveoy.top/t/topic/h3Mi 著作权归作者所有。请勿转载和采集!