# Generated by BuildAgent based on repository context.
# Builds Bundler from source using a slim Ruby base image.
FROM ruby:slim-bookworm
# Use bash as the default shell to improve quoting behavior in smoke tests
SHELL ["/bin/bash", "-lc"]
# Install system dependencies required for building Bundler and optional tooling.
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends graphviz \
&& rm -rf /var/lib/apt/lists/*
# Set a working directory for the build context
WORKDIR /work
# Copy source code into the image
COPY . /work
# Build Bundler from source and install the produced gem
RUN gem build bundler.gemspec \
&& gem install bundler-*.gem
# Verify the installation
RUN bundler -v
# Default command: show Bundler version when container starts
CMD ["bundle", "-v"]