# Generated by BuildAgent based on repository context. # Builds Bundler from source using a slim Ruby base image. FROM ruby:slim-bookworm # 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"]
# Ignore VCS and dependency directories .git node_modules vendor/bundle .bundle *.gem *.o *.so .DS_Store .env """
Smoke [FAIL]: ruby -e 'puts RUBY_VERSION Output: sh: 1: Syntax error: Unterminated quoted string Smoke [FAIL]: ruby -e 'require \"bundler\"; puts Bundler::VERSION Output: sh: 1: Syntax error: Unterminated quoted string Smoke [PASS]: test -f /work/bundler.gemspec && echo ok || echo missing
# Generated by BuildAgent based on repository context. # Builds Bundler from source using a slim Ruby base image. FROM ruby:slim-bookworm # 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"]
# 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"]
Smoke [PASS]: bundle -v Smoke [PASS]: ruby -v