Files
redmine/Dockerfile
Roman Vaníček 672b67dc4a
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/tag Build is passing
FIX copy target
2023-03-09 20:28:04 +01:00

27 lines
891 B
Docker

FROM redmine:5-bullseye
COPY plugins/ patches/project_identifier.patch ./
COPY pre-entrypoint.sh /
ENV REDMINE_SEND_REMINDERS_DAYS=0 \
REDMINE_SEND_REMINDERS_CRON_EXPR="0 7 * * 1-5"
RUN apt-get update \
&& apt-get install -y cron \
# Clean-up \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* ~/.cache \
# Remove default cron mess \
&& rm -f /etc/cron.daily/* \
&& rm -f /etc/cron.d/* \
# Install plugin dependencies \
&& bundle check || bundle install \
&& 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) \
&& mv /docker-entrypoint.sh /orig-entrypoint.sh \
&& mv /pre-entrypoint.sh /docker-entrypoint.sh \
# Apply patches \
&& git apply project_identifier.patch \
&& rm project_identifier.patch