heroku-gitea/Dockerfile

12 lines
326 B
Docker
Raw Normal View History

2024-10-28 21:17:14 +01:00
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"]