Create config/initializers/secret_token.rb in Dockerfile

Set the secret_token to ENV['SECRET_KEY_BASE'] in that file.
This commit is contained in:
Patrick Gansterer 2017-08-08 23:24:30 +02:00
parent 2c180cc9e8
commit 42b789d381
1 changed files with 1 additions and 0 deletions

View File

@ -17,6 +17,7 @@ RUN buildDeps='libmagic-dev' && \
rm -rf /var/lib/apt/lists/* && \ rm -rf /var/lib/apt/lists/* && \
bundle install --deployment --without development test && \ bundle install --deployment --without development test && \
apt-get purge -y --auto-remove $buildDeps && \ apt-get purge -y --auto-remove $buildDeps && \
echo "Foodsoft::Application.config.secret_token = ENV['SECRET_KEY_BASE']" > config/initializers/secret_token.rb && \
mkdir -p log && \ mkdir -p log && \
ln -sfn /dev/stdout log/production.log && \ ln -sfn /dev/stdout log/production.log && \
bundle exec whenever --update-crontab bundle exec whenever --update-crontab