rubygems-bundler
SUCCESS
2m 10s
History Source
SummaryIterations1Transcript4Dockerfile
01Iteration 1
WRITEWriteFile· step #1
0s
Dockerfile732 bytes written
text26 lines · 732 chars
# Build Bundler from source and install the gem so the container has the bundled "bundler" executable
FROM ruby:3.2-slim

# Install build dependencies needed to build native extensions and the gem
RUN apt-get update -qq \
  && apt-get install -y --no-install-recommends \
    build-essential \
    git \
    zlib1g-dev \
    liblzma-dev \
    ca-certificates \
  && rm -rf /var/lib/apt/lists/*

# Set working directory to the repository root
WORKDIR /app

# Copy the repository contents into the image
COPY . .

# Build the gem from the gemspec and install it
RUN gem build bundler.gemspec \
  && gem install bundler-*.gem --no-document

# Default to an interactive shell so users can run bundler commands, tests, etc.
CMD ["bash"]
WRITEWriteFile· step #2
0s
/.dockerignore139 chars
dockerignore13 lines · 139 chars
# Ignore common project and environment files
.git
.bundle
vendor/bundle
log
tmp
coverage
node_modules
*.gem
*.log
.dockerignore
.DS_Store
WRITEWriteFile· step #3
0s
.dockerignore139 bytes written
dockerignore13 lines · 139 chars
# Ignore common project and environment files
.git
.bundle
vendor/bundle
log
tmp
coverage
node_modules
*.gem
*.log
.dockerignore
.DS_Store
VERIFYVerifyBuild· step #4
1m 31s
VerifyBuildaccepted
Smoke [PASS]: bundle -v
Smoke [PASS]: which bundle
Smoke [PASS]: ruby -v