heroku-gitea/Dockerfile

22 lines
414 B
Docker
Raw Normal View History

2024-10-19 13:11:55 +02:00
FROM gitea/gitea:1.14.5-rootless
2024-10-20 16:24:07 +02:00
2024-10-23 12:12:36 +02:00
2024-10-20 15:11:29 +02:00
ADD config /etc/gitea
ADD localtime /etc/localtime
ADD timezone /etc/timezone
2024-10-23 12:06:45 +02:00
COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh
USER root
RUN chmod 755 /usr/local/bin/parse_db_url.sh
2024-10-23 12:09:27 +02:00
2024-10-23 12:39:24 +02:00
RUN useradd -ms /bin/bash customuser && \
chown -R customuser:customuser /var/lib/gitea/custom
USER customuser
2024-10-23 12:29:23 +02:00
ENV DATABASE_URL=${DATABASE_URL}
2024-10-23 12:06:45 +02:00
2024-10-23 12:29:23 +02:00
CMD ["/usr/local/bin/parse_db_url.sh"]
2024-10-23 12:06:45 +02:00