2025-01-06 18:46:02 +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 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
|
2025-01-04 22:36:40 +01:00
|
|
|
|
2025-01-06 18:46:02 +01:00
|
|
|
USER 1000:1000
|
2025-01-04 22:36:40 +01:00
|
|
|
|
2025-01-06 18:46:02 +01:00
|
|
|
CMD ["/usr/local/bin/run.sh"]
|
2025-01-04 22:36:40 +01:00
|
|
|
|
|
|
|
|
2025-01-06 18:46:02 +01:00
|
|
|
#FROM gitea/gitea:1.14.5
|
|
|
|
#
|
|
|
|
#WORKDIR /app
|
|
|
|
#
|
|
|
|
#COPY run.sh ./
|
|
|
|
#
|
|
|
|
#ENV GITEA_CUSTOM=/var/lib/gitea/custom
|
|
|
|
#
|
|
|
|
#RUN chmod +x ./run.sh
|
|
|
|
#
|
|
|
|
#ENTRYPOINT ["./run.sh"]
|