28 lines
659 B
Docker
28 lines
659 B
Docker
FROM redmine:4.2.8
|
|
|
|
ENV REDMINE_PATH=/usr/src/redmine \
|
|
REDMINE_LOCAL_PATH=/var/local/redmine
|
|
|
|
WORKDIR $REDMINE_PATH
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
unzip cron curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY plugins/ ./plugins
|
|
COPY themes/ ./public/themes
|
|
|
|
RUN unzip ./plugins/\*.zip -d ./plugins
|
|
RUN unzip ./public/themes/\*.zip -d ./public/themes
|
|
RUN chmod -R 755 ./plugins/*
|
|
|
|
RUN rm ./plugins/*.zip
|
|
RUN rm ./public/themes/*.zip
|
|
|
|
COPY entrypoint.sh update-repositories.sh ${REDMINE_LOCAL_PATH}/scripts/
|
|
COPY crontab ${REDMINE_LOCAL_PATH}/
|
|
|
|
ENTRYPOINT ["/var/local/redmine/scripts/entrypoint.sh"]
|
|
CMD []
|