2022-11-15 20:10:19 +01:00
|
|
|
FROM gitea/gitea:1.14.5-rootless
|
|
|
|
|
|
|
|
ADD config /etc/gitea
|
|
|
|
ADD data /var/lib/gitea
|
|
|
|
ADD localtime /etc/localtime
|
|
|
|
ADD timezone /etc/timezone
|
2022-11-15 20:40:09 +01:00
|
|
|
COPY --chown=root:root run.sh /usr/local/bin/
|
2022-11-15 21:11:33 +01:00
|
|
|
ADD conf/ /var/lib/gitea/custom/conf/
|
2022-11-15 20:10:19 +01:00
|
|
|
|
2022-11-15 20:41:22 +01:00
|
|
|
USER root
|
2022-11-15 20:39:10 +01:00
|
|
|
RUN chmod 755 /usr/local/bin/run.sh
|
2022-11-15 21:10:31 +01:00
|
|
|
RUN chmod a+rwx /var/lib/gitea/custom/conf/app.ini
|
2022-11-15 20:37:02 +01:00
|
|
|
|
2022-11-15 20:41:22 +01:00
|
|
|
USER 1000:1000
|
2022-11-15 20:33:52 +01:00
|
|
|
ARG DATABASE_URL='db:5432'
|
2022-11-15 20:10:19 +01:00
|
|
|
|
|
|
|
ENV DATABASE_URL=${DATABASE_URL}
|
|
|
|
|
|
|
|
CMD ["/usr/local/bin/run.sh"]
|