FROM gitea/gitea:1.14.5-rootless ARG DATABASE_URL ENV DATABASE_URL=${DATABASE_URL} COPY --chown=root:root run.sh /usr/local/bin/ ADD ../heroku-gitea/conf/ /var/lib/gitea/custom/conf/ USER root RUN chmod 755 /usr/local/bin/run.sh RUN chmod a+rwx /var/lib/gitea/custom/conf/app.ini USER 1000:1000 CMD ["/usr/local/bin/run.sh"]