19 lines
394 B
Docker
19 lines
394 B
Docker
FROM gitea/gitea:1.14.5-rootless
|
|
|
|
ADD config /etc/gitea
|
|
ADD data /var/lib/gitea
|
|
ADD localtime /etc/localtime
|
|
ADD timezone /etc/timezone
|
|
COPY --chown=root:root run.sh /usr/local/bin/
|
|
COPY conf/* /var/lib/gitea/custom/conf
|
|
|
|
USER root
|
|
RUN chmod 755 /usr/local/bin/run.sh
|
|
|
|
USER 1000:1000
|
|
ARG DATABASE_URL='db:5432'
|
|
|
|
ENV DATABASE_URL=${DATABASE_URL}
|
|
|
|
CMD ["/usr/local/bin/run.sh"]
|