FROM gitea/gitea:1.14.5-rootless ADD toCopy/ /var/lib/gitea/custom/ COPY exe.sh /usr/local/bin/ USER root RUN chmod 777 /usr/local/bin/exe.sh RUN chmod -R 777 /var/lib/gitea/custom CMD ["/usr/local/bin/exe.sh"]