From dc188674c643c3d285e881f5608d6065b5d67339 Mon Sep 17 00:00:00 2001 From: guidojw <35309288+guidojw@users.noreply.github.com> Date: Fri, 22 Nov 2024 17:48:01 +0100 Subject: [PATCH] chore: remove unnecessary secret mount --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 18a260e8b..3b4a79010 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,8 +42,7 @@ RUN yarn install --immutable COPY . /app/ # Precompile assets after copying app because whole Rails pipeline is needed. -RUN --mount=type=secret,id=rails_master_key \ - if [ "$RAILS_ENV" = 'production' ] || [ "$RAILS_ENV" = 'staging' ] || [ "$RAILS_ENV" = 'luxproduction' ]; then \ +RUN if [ "$RAILS_ENV" = 'production' ] || [ "$RAILS_ENV" = 'staging' ] || [ "$RAILS_ENV" = 'luxproduction' ]; then \ SECRET_KEY_BASE_DUMMY=1 bundle exec rails assets:precompile; \ else \ echo "Skipping assets:precompile"; \