diff --git a/Dockerfile b/Dockerfile index cf07188..ac62187 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,12 +31,12 @@ RUN mkdir -p /opt/postal/app /opt/postal/config WORKDIR /opt/postal/app # Install bundler -RUN gem install bundler -v 2.4.9 --no-doc +RUN gem install bundler -v 2.5.6 --no-doc # Install the latest and active gem dependencies and re-run # the appropriate commands to handle installs. -COPY Gemfile Gemfile.lock ./ -RUN bundle config set force_ruby_platform true && bundle install -j 4 +COPY --chown=postal Gemfile Gemfile.lock ./ +RUN bundle install -j 6 # Copy the application (and set permissions) COPY ./docker/wait-for.sh /docker-entrypoint.sh diff --git a/Gemfile.lock b/Gemfile.lock index d0e4868..64f8367 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -76,7 +76,6 @@ GEM activerecord (>= 6.1, < 8.0) autoprefixer-rails (10.4.13.0) execjs (~> 2) - base64 (0.2.0) bcrypt (3.1.20) bigdecimal (3.1.6) builder (3.2.4) @@ -136,8 +135,6 @@ GEM railties (>= 4.2.0) thor (>= 0.14, < 2.0) json (2.6.3) - jwt (2.8.0) - base64 kaminari (1.2.2) activesupport (>= 4.1.0) kaminari-actionview (= 1.2.2) @@ -346,7 +343,6 @@ DEPENDENCIES hashie highline jquery-rails - jwt kaminari klogger-logger mail @@ -372,4 +368,4 @@ DEPENDENCIES webmock BUNDLED WITH - 2.4.9 + 2.5.6