22 lines
414 B
Docker
22 lines
414 B
Docker
FROM gitea/gitea:1.14.5-rootless
|
|
|
|
|
|
|
|
ADD config /etc/gitea
|
|
ADD localtime /etc/localtime
|
|
ADD timezone /etc/timezone
|
|
COPY parse_db_url.sh /usr/local/bin/parse_db_url.sh
|
|
|
|
USER root
|
|
RUN chmod 755 /usr/local/bin/parse_db_url.sh
|
|
|
|
RUN useradd -ms /bin/bash customuser && \
|
|
chown -R customuser:customuser /var/lib/gitea/custom
|
|
|
|
USER customuser
|
|
|
|
ENV DATABASE_URL=${DATABASE_URL}
|
|
|
|
CMD ["/usr/local/bin/parse_db_url.sh"]
|
|
|