diff --git a/redmine/Dockerfile b/redmine/Dockerfile index ff9baf0..916d891 100644 --- a/redmine/Dockerfile +++ b/redmine/Dockerfile @@ -13,12 +13,11 @@ RUN apt-get update \ 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 +RUN unzip ./plugins/\*.zip -d ./plugins \ + && unzip ./public/themes/\*.zip -d ./public/themes \ + && chmod -R 755 ./plugins/* \ + && rm ./plugins/*.zip \ + && rm ./public/themes/*.zip COPY entrypoint.sh update-repositories.sh ${REDMINE_LOCAL_PATH}/scripts/ COPY crontab ${REDMINE_LOCAL_PATH}/ diff --git a/redmine/entrypoint.sh b/redmine/entrypoint.sh index 2a7316e..149b4e7 100755 --- a/redmine/entrypoint.sh +++ b/redmine/entrypoint.sh @@ -1,5 +1,8 @@ #!/bin/bash +mkdir -p /var/local/redmine/repositories +chown redmine:redmine /var/local/redmine/repositories + /usr/sbin/cron crontab -u root /var/local/redmine/crontab