From f374bb33626eb6cdee2103cfcb14a28ab2f19be2 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Wed, 19 Jan 2022 17:08:01 -0800 Subject: [PATCH] do not mix bundle config and bundle --without usage they both write a config file and overwrite each other. there is a --global and --local flag as well to determine where bundle config should be generated. --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 974c3fe..0be3c89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,8 +20,10 @@ ENV NODE_ENV production ARG VERSION=3.4.4 RUN curl -L https://github.com/tootsuite/mastodon/archive/v${VERSION}.tar.gz | tar -xz --strip-components 1 -f - && \ - bundle config set deployment 'true' && \ - bundle install --without test development && \ + bundle config --local set deployment 'true' && \ + bundle config --local set without 'development test' && \ + bundle config --local set silence_root_warning true && \ + bundle install && \ yarn install --pure-lockfile # secret keys are not built into assets, so precompiling is safe to do here