heroku-gitea/Dockerfile

12 lines
310 B
Docker
Raw Permalink 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/
2024-10-28 21:19:05 +01:00
ADD conf/ /var/lib/gitea/custom/conf/
2024-10-28 21:17:14 +01:00
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"]