When trying to bundle install in a docker build I am getting this error: An error occurred while installing bson (4.15.0), and Bundler cannot continue.

I am running a Dockerfile for an aws lambda:

FROM public.ecr.aws/lambda/ruby:latest

COPY Gemfile Gemfile.lock Rakefile Dockerfile ./
RUN bundle config set --local without 'development test'
ENV GEM_HOME=${LAMBDA_TASK_ROOT}
RUN bundle install

RUN mkdir -p /app
WORKDIR /app

COPY lib/ lib/

CMD ["lib/lambda/handler.api_status"]

I have tried to update libssl

yum install libssl-dev

Still not working.

0

There are 0 best solutions below