Browse Source

Update ruby version

pull/1794/head
Kat 3 years ago
parent
commit
53b255d58e
  1. 2
      .ruby-version
  2. 4
      Dockerfile
  3. 2
      Dockerfile_dev
  4. 2
      Gemfile
  5. 2
      Gemfile.lock
  6. 4
      docs/setup.md

2
.ruby-version

@ -1 +1 @@
3.1.2 3.1.4

4
Dockerfile

@ -1,5 +1,5 @@
# Build compilation image # Build compilation image
FROM ruby:3.1.2-alpine as builder FROM ruby:3.1.4-alpine as builder
# The application runs from /app # The application runs from /app
WORKDIR /app WORKDIR /app
@ -45,7 +45,7 @@ RUN rm -rf node_modules log tmp && \
find /usr/local/bundle/gems -name "*.html" -delete find /usr/local/bundle/gems -name "*.html" -delete
# Build runtime image # Build runtime image
FROM ruby:3.1.2-alpine as production FROM ruby:3.1.4-alpine as production
# The application runs from /app # The application runs from /app
WORKDIR /app WORKDIR /app

2
Dockerfile_dev

@ -1,5 +1,5 @@
# Build compilation image # Build compilation image
FROM ruby:3.1.2-alpine FROM ruby:3.1.4-alpine
# The application runs from /app # The application runs from /app
WORKDIR /app WORKDIR /app

2
Gemfile

@ -3,7 +3,7 @@
source "https://rubygems.org" source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" } git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "3.1.2" ruby "3.1.4"
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main' # Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem "rails", "~> 7.0.2" gem "rails", "~> 7.0.2"

2
Gemfile.lock

@ -501,7 +501,7 @@ DEPENDENCIES
webmock webmock
RUBY VERSION RUBY VERSION
ruby 3.1.2p20 ruby 3.1.4p223
BUNDLED WITH BUNDLED WITH
2.3.14 2.3.14

4
docs/setup.md

@ -64,8 +64,8 @@ We recommend using [nvm](https://github.com/nvm-sh/nvm) to manage NodeJS version
4. Install Ruby and Bundler 4. Install Ruby and Bundler
```bash ```bash
rbenv install 3.1.2 rbenv install 3.1.4
rbenv global 3.1.2 rbenv global 3.1.4
source ~/.bashrc source ~/.bashrc
gem install bundler gem install bundler
``` ```

Loading…
Cancel
Save