Skip to content

Commit 7ccc738

Browse files
committed
trying to fix deploys
1 parent ea0e2ea commit 7ccc738

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,8 +61,14 @@ COPY . .
6161
RUN bundle exec bootsnap precompile app/ lib/
6262

6363
# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
64-
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
65-
64+
ARG DUMMY_KEY=dummy
65+
66+
RUN \
67+
SECRET_KEY_BASE_DUMMY=1 \
68+
ACTIVE_RECORD_ENCRYPTION_PRIMARY_KEY=$DUMMY_KEY \
69+
ACTIVE_RECORD_ENCRYPTION_DETERMINISTIC_KEY=$DUMMY_KEY \
70+
ACTIVE_RECORD_DERIVATION_SALT_KEY=$DUMMY_KEY \
71+
./bin/rails assets:precompile
6672

6773
# Final stage for app image
6874
FROM base

0 commit comments

Comments
 (0)