From 90c631a07a5c4e1e992c8059a34cdada3d5f84ac Mon Sep 17 00:00:00 2001 From: david Date: Mon, 22 Jul 2024 03:27:58 +0200 Subject: [PATCH] Update ruby --- .ruby-version | 2 +- Dockerfile | 6 +++--- Gemfile | 2 +- Gemfile.lock | 2 +- docker-compose.yml | 4 +++- 5 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.ruby-version b/.ruby-version index 03463f3..6d5369b 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -ruby-3.3.0 +ruby-3.3.4 diff --git a/Dockerfile b/Dockerfile index d3c7c08..bc263ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,8 @@ ARG UID=1000 ARG GID=1000 ARG APP_PORT=3000 ARG INSTALL_DIR=/${NAME} - -FROM ruby:3.3 AS development +ARG RUBY_VERSION=3.3.4 +FROM ruby:${RUBY_VERSION} AS development ARG NAME ARG UID @@ -69,7 +69,7 @@ COPY --from=builder /app/node_modules /app/node_modules RUN RAILS_ENV=production SECRET_KEY_BASE_DUMMY=1 rails assets:precompile -FROM ruby:3.3.0-slim AS production +FROM ruby:${RUBY_VERSION}-slim AS production ARG NAME ARG UID diff --git a/Gemfile b/Gemfile index ae0eaaa..49fa037 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,7 @@ source 'https://rubygems.org' -ruby '3.3.0' +ruby '3.3.4' # Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main" gem 'rails', '~> 7.1.3', '>= 7.1.3.4' diff --git a/Gemfile.lock b/Gemfile.lock index be83bc7..cdc7a37 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -375,7 +375,7 @@ DEPENDENCIES web-console RUBY VERSION - ruby 3.3.0p0 + ruby 3.3.4p94 BUNDLED WITH 2.5.15 diff --git a/docker-compose.yml b/docker-compose.yml index c5be9df..b8faee1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -7,7 +7,9 @@ networks: services: app: &app - build: . + build: + context: . + target: development volumes: - ./:/app:cached environment: