diff --git a/Dockerfile b/Dockerfile index d0a6671..f4a9948 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,9 @@ RUN bundle clean FROM sutty/monit:latest ENV RAILS_ENV production +# Chequear que la versión de ruby sea la correcta +RUN test "2.5.7" = `ruby -e 'puts RUBY_VERSION'` + # Instalar las dependencias, separamos la librería de base de datos para # poder reutilizar este primer paso desde otros contenedores RUN apk add --no-cache libxslt libxml2 tzdata ruby ruby-bundler ruby-json ruby-bigdecimal ruby-rake diff --git a/Gemfile b/Gemfile index ce16e8a..68eae3f 100644 --- a/Gemfile +++ b/Gemfile @@ -14,6 +14,7 @@ git_source(:github) do |repo_name| "https://github.com/#{repo_name}.git" end +# Cambiar en Dockerfile también ruby '2.5.7' gem 'dotenv-rails', require: 'dotenv/rails-now'