Skip to content

Commit

Permalink
rails secrets was deprecated and removed in 7.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Dec 21, 2024
1 parent 106b9c4 commit a22911c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions images/web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,12 @@ RUN git fetch && rm -rf .git
# Install Ruby packages
RUN gem install bundler && bundle install

# Configure database.yml and secrets.yml
# Configure database.yml
RUN cp $workdir/config/example.database.yml $workdir/config/database.yml
RUN touch $workdir/config/settings.local.yml
RUN cp $workdir/config/example.storage.yml $workdir/config/storage.yml
RUN echo "#session key \n\
production: \n\
secret_key_base: $(bundle exec rake secret)" > $workdir/config/secrets.yml
# Protect sensitive information
RUN chmod 600 $workdir/config/database.yml $workdir/config/secrets.yml
RUN chmod 600 $workdir/config/database.yml

RUN yarn install
RUN bundle exec rake yarn:install
Expand Down

0 comments on commit a22911c

Please sign in to comment.