Switch to semicolons in Dockerfile.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-03-23 17:34:09 +01:00
parent ae31438e9e
commit 11dfe145ac

View File

@@ -8,33 +8,33 @@ ENV REDMINE_SEND_REMINDERS_DAYS=0 \
REDMINE_SEND_REMINDERS_CRON_EXPR="0 7 * * 1-5" REDMINE_SEND_REMINDERS_CRON_EXPR="0 7 * * 1-5"
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y cron nodejs gcc make \ apt-get install -y cron nodejs gcc make; \
# Compile FFI module \ # Compile FFI module
&& chmod 770 /usr/local/bundle/gems /usr/local/bundle/extensions/x86_64-linux /usr/local/bundle/extensions/x86_64-linux/3.1.0 \ chmod 770 /usr/local/bundle/gems /usr/local/bundle/extensions/x86_64-linux /usr/local/bundle/extensions/x86_64-linux/3.1.0; \
&& bundle check || bundle install \ bundle check || bundle install; \
# Clean-up \ # Clean-up
&& apt-get purge -y --auto-remove gcc make \ apt-get purge -y --auto-remove gcc make; \
&& apt-get clean \ apt-get clean; \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache; \
# Remove default cron mess \ # Remove default cron mess
&& rm -f /etc/cron.daily/* \ rm -f /etc/cron.daily/*; \
&& rm -f /etc/cron.d/* \ rm -f /etc/cron.d/*; \
# Install plugin dependencies \ # Install plugin dependencies
&& bundle check || bundle install \ bundle check || bundle install; \
# For hourglass plugin \ # For hourglass plugin
# fill up "database.yml" with bogus entries so the redmine Gemfile will pre-install all database adapter dependencies \ # fill up "database.yml" with bogus entries so the redmine Gemfile will pre-install all database adapter dependencies
echo '# the following entries only exist to force `bundle install` to pre-install all database adapter dependencies -- they can be safely removed/ignored' > ./config/database.yml && \ echo '# the following entries only exist to force `bundle install` to pre-install all database adapter dependencies -- they can be safely removed/ignored' > ./config/database.yml; \
for adapter in mysql2 postgresql sqlserver sqlite3; do \ for adapter in mysql2 postgresql sqlserver sqlite3; do \
echo "$adapter:" >> ./config/database.yml; \ echo "$adapter:" >> ./config/database.yml; \
echo " adapter: $adapter" >> ./config/database.yml; \ echo " adapter: $adapter" >> ./config/database.yml; \
done; \ done; \
&& bundle exec rake redmine:plugins:assets RAILS_ENV=production \ bundle exec rake redmine:plugins:assets RAILS_ENV=production; \
&& rm ./config/database.yml \ rm ./config/database.yml; \
&& chmod +x /pre-entrypoint.sh \ chmod +x /pre-entrypoint.sh; \
# setting ENTRYPOINT destroys CMD so replace the entrypoint script and call it later \ # 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) \ # (see bottom note in https://docs.docker.com/engine/reference/builder/#entrypoint)
&& mv /docker-entrypoint.sh /orig-entrypoint.sh \ mv /docker-entrypoint.sh /orig-entrypoint.sh; \
&& mv /pre-entrypoint.sh /docker-entrypoint.sh \ mv /pre-entrypoint.sh /docker-entrypoint.sh; \
# Apply patches \ # Apply patches
&& git apply project_identifier.patch \ git apply project_identifier.patch; \
&& rm project_identifier.patch rm project_identifier.patch