FROM ruby:3.1.2-buster RUN apt-get update -qq RUN apt-get install -y \ nodejs="10.24.0~dfsg-1~deb10u3" \ netcat=1.10-41.1 # ruby comes with older versions of bundler sometimes RUN gem install bundler -v "2.3.14" # WARNING # note: context is changed, see ../../docker-compose.rails-7-barebones.yml ADD ./ /splunk-otel-ruby ENV SPLUNK_OTEL_LOCATION="/splunk-otel-ruby" WORKDIR /splunk-otel-ruby/examples/rails-7-barebones RUN bundle install CMD ["bundle", "exec", "rackup", "app.ru", "--host", "0.0.0.0", "-p", "3000"]