FROM code.forgejo.org/forgejo/runner:5
USER root
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
USER runner
ENTRYPOINT [ "/entrypoint.sh" ]