From 61916a8a275f60e434b60c87cb609d0f5a248bb5 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 16 Jun 2025 22:53:09 -0400 Subject: [PATCH 1/3] Don't default RUBY_VERSION arg --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 322fc6d..6e3d210 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,7 @@ # For a containerized dev environment, see Dev Containers: https://guides.rubyonrails.org/getting_started_with_devcontainer.html # Make sure RUBY_VERSION matches the Ruby version in .ruby-version -ARG RUBY_VERSION=3.4.1 +ARG RUBY_VERSION FROM docker.io/library/ruby:$RUBY_VERSION-slim AS base # Rails app lives here -- 2.45.3 From d1d141d65fd60abc7785392853383208ddbc2298 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 16 Jun 2025 22:58:45 -0400 Subject: [PATCH 2/3] Make sure ruby-version is copied in time --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6e3d210..9372b8a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,7 @@ RUN apt-get update -qq && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives # Install application gems -COPY Gemfile Gemfile.lock ./ +COPY Gemfile Gemfile.lock .ruby-version ./ RUN bundle install && \ rm -rf ~/.bundle/ "${BUNDLE_PATH}"/ruby/*/cache "${BUNDLE_PATH}"/ruby/*/bundler/gems/*/.git && \ bundle exec bootsnap precompile --gemfile -- 2.45.3 From 6c592ea31ee75f2b170615451511002ee7062ce4 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 16 Jun 2025 23:02:38 -0400 Subject: [PATCH 3/3] Install yaml headers --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9372b8a..a2ee105 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,7 +29,7 @@ FROM base AS build # Install packages needed to build gems RUN apt-get update -qq && \ - apt-get install --no-install-recommends -y build-essential git pkg-config && \ + apt-get install --no-install-recommends -y build-essential git pkg-config libyaml-dev && \ rm -rf /var/lib/apt/lists /var/cache/apt/archives # Install application gems -- 2.45.3