backup-backup
SUCCESS
9m 58s
History Source
SummaryIterations1Transcript9Dockerfile
Dockerfile33 lines · 736 chars
FROM ruby:3.2-slim-bullseye

LABEL maintainer="BuildAgent" \
    description="Image for running the backup Rubygem"

ENV APP_HOME /usr/src/backup
WORKDIR $APP_HOME

# Install dependencies for building native gems and runtime
RUN apt-get update && \
    apt-get install -y --no-install-recommends \
      build-essential \
      ca-certificates \
      curl \
      git \
      libxml2-dev \
      libxslt1-dev \
      libyaml-dev \
      zlib1g-dev \
      libcurl4-openssl-dev \
      tzdata && \
    rm -rf /var/lib/apt/lists/* && \
    update-ca-certificates

# Copy source code into the image
COPY . .

# Install Ruby gem dependencies (excluding CI-only groups)
RUN bundle install --without no_ci

# Default to a shell
CMD ["bash"]