From 036d73593d2928a6f9479cfeecb9792e4e053102 Mon Sep 17 00:00:00 2001 From: Laura Wrubel Date: Mon, 3 Jun 2024 12:10:03 -0400 Subject: [PATCH] Switch to use debian base image --- Dockerfile | 18 ++++++------------ Gemfile.lock | 2 ++ 2 files changed, 8 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 524af370..6a76c90b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,9 @@ -FROM ruby:3.2.2-alpine +FROM ruby:3.3.2-bookworm -# postgresql-client is required for invoke.sh -RUN apk --no-cache add \ - postgresql-dev \ - postgresql-client \ - tzdata \ - libxml2-dev \ - libxslt-dev +RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ + && apt-get -y install --no-install-recommends \ + postgresql-client postgresql-contrib libpq-dev build-essential \ + libxml2-dev libxslt-dev LABEL maintainer="Aaron Collier " @@ -25,10 +22,7 @@ RUN gem update --system && \ COPY Gemfile Gemfile.lock ./ -RUN apk --no-cache add --virtual build-dependencies \ - build-base \ - && bundle install --without test\ - && apk del build-dependencies +RUN bundle install COPY . . diff --git a/Gemfile.lock b/Gemfile.lock index e223c4eb..28e58ee2 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -191,6 +191,7 @@ GEM net-http faraday-retry (2.2.1) faraday (~> 2.0) + ffi (1.17.0-aarch64-linux-gnu) ffi (1.17.0-aarch64-linux-musl) ffi (1.17.0-arm64-darwin) ffi (1.17.0-x86_64-darwin) @@ -454,6 +455,7 @@ GEM zeitwerk (2.6.15) PLATFORMS + aarch64-linux aarch64-linux-musl arm64-darwin-23 x86_64-darwin-19