docker/Dockerfile in fluent-plugin-k8s-metrics-agg-1.2.2 vs docker/Dockerfile in fluent-plugin-k8s-metrics-agg-1.2.3
- old
+ new
@@ -1,16 +1,16 @@
-FROM ruby:2.7.4-buster as builder
+FROM ruby:3.1.4-buster as builder
ADD ./ /app/
WORKDIR /app
RUN gem install bundler
RUN bundle update --bundler
RUN bundle install
RUN bundle exec rake build -t -v
-FROM registry.access.redhat.com/ubi8/ruby-27
+FROM registry.access.redhat.com/ubi9/ruby-31
ARG VERSION
LABEL name="Splunk Connect for Kubernetes Metrics Aggregator container" \
maintainer="DataEdge@splunk.com" \
@@ -29,11 +29,9 @@
RUN mkdir /licenses
COPY --from=builder /app/LICENSE /licenses/LICENSE
COPY --from=builder /app/docker/Gemfile* ./
-RUN gem update date cgi
-RUN rm -f /usr/share/gems/specifications/default/cgi-0.1.0.gemspec /usr/share/gems/specifications/default/date-3.0.0.gemspec
RUN yum update -y \
&& yum remove -y nodejs npm \
&& gem install bundler \
&& gem uninstall -i /usr/share/gems bundler \
&& gem unpack /tmp/*.gem --target gem \