JS assets must be generated during start-up as it fails with "Could not load database configuration. No such file" in Dockerfile.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-23 17:19:48 +01:00
parent 7d1cddf937
commit fd3b5645c0
2 changed files with 3 additions and 2 deletions

View File

@@ -21,8 +21,6 @@ RUN apt-get update \
&& rm -f /etc/cron.d/* \
# Install plugin dependencies \
&& bundle check || bundle install \
# (for hourglass plugin) \
&& bundle exec rake redmine:plugins:assets RAILS_ENV=production \
&& chmod +x /pre-entrypoint.sh \
# setting ENTRYPOINT destroys CMD so replace the entrypoint script and call it later \
# (see bottom note in https://docs.docker.com/engine/reference/builder/#entrypoint) \

View File

@@ -8,6 +8,9 @@ crontab /etc/cron.d/redmine
service cron start
# For hourglass plugin
bundle exec rake redmine:plugins:assets RAILS_ENV=production
set -- /orig-entrypoint.sh "$@"
echo Executing original Redmine "$@"
exec "$@"