update ruby version

This commit is contained in:
Dylan Knutson
2025-07-21 22:26:54 +00:00
parent fd61616c03
commit b1de28d80f
9 changed files with 95 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
# Primary image
FROM ruby:3.2.6
FROM ruby:3.4.4
USER root
# apt caching & install packages
@@ -14,10 +14,10 @@ RUN \
libblas-dev liblapack-dev
# preinstall gems that take a long time to install
RUN MAKE="make -j12" gem install bundler -v '2.5.6' --verbose
RUN MAKE="make -j12" gem install rice -v '4.3.3' --verbose
RUN MAKE="make -j12" gem install faiss -v '0.3.2' --verbose
RUN MAKE="make -j12" gem install rails_live_reload -v '0.3.6' --verbose
RUN MAKE="make -j12" gem install bundler -v '2.6.7'
RUN MAKE="make -j12" gem install rice -v '4.3.3'
RUN MAKE="make -j12" gem install faiss -v '0.3.2'
RUN MAKE="make -j12" gem install rails_live_reload -v '0.3.6'
RUN bundle config --global frozen 1
# set up nodejs 18.x deb repo
@@ -46,9 +46,8 @@ RUN \
WORKDIR /usr/src/app
COPY Gemfile Gemfile.lock ./
RUN echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
RUN bundle config --local frozen 1
RUN --mount=type=ssh bundle install
COPY gems/has_aux_table ./gems/has_aux_table
RUN ls -lah gems && BUNDLE_FROZEN=true MAKE="make -j$(nproc)" bundle install --jobs $(nproc)
# install js dependencies
COPY package.json yarn.lock ./