FROM gitea/gitea:1.14.5-rootless ADD config /etc/gitea ADD data /var/lib/gitea ADD localtime /etc/localtime ADD timezone /etc/timezone ADD run.sh /usr/local/bin/ RUN chmod a+x /usr/local/bin/run.sh ARG DATABASE_URL='db:5432' ENV DATABASE_URL=${DATABASE_URL} CMD ["/usr/local/bin/run.sh"]