Skip to content

Commit

Permalink
Dockerfile env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarMWarraich committed Jul 29, 2024
1 parent 05e6649 commit f5f4115
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ COPY . .
# Precompile bootsnap code for faster boot times
RUN bundle exec bootsnap precompile app/ lib/

# Define build arguments
ARG USERNAME
ARG PASSWORD

# Precompiling assets for production without requiring secret RAILS_MASTER_KEY
RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile
RUN SECRET_KEY_BASE_DUMMY=1 USERNAME=$USERNAME PASSWORD=$PASSWORD ./bin/rails assets:precompile


# Final stage for app image
Expand Down

0 comments on commit f5f4115

Please sign in to comment.