Ansible runner 3 build issues (pip config file , permissions of user 1000 in /runner path)

Hello all,

I want to build my custom EE and I’m having issues with ansible-builder 3.

First issue:
What I need: add custom pip.conf so pip will work with a proxy
What I have done:

prepend_builder: |
        COPY _build/configs/pip.conf /etc/pip.conf

The Problem: It adds the COPY after the pip command - pip will not work

# Builder build stage
FROM base as builder
WORKDIR /build
ARG EE_BASE_IMAGE
ARG PYCMD
ARG PKGMGR_PRESERVE_CACHE
ARG ANSIBLE_GALAXY_CLI_COLLECTION_OPTS
ARG ANSIBLE_GALAXY_CLI_ROLE_OPTS
ARG PKGMGR


RUN $PYCMD -m pip install --no-cache-dir bindep pyyaml requirements-parser
COPY _build/configs/pip.conf /etc/pip.conf

Second issue:
When running ansible-navigator I got an error concerning the user runner not have the correct permissions on the /runner path

This is the config by default of ansible-builder 3

RUN mkdir -p /runner && chgrp 0 /runner && chmod -R ug+rwx /runner
WORKDIR /runner
RUN $PYCMD -m pip install --no-cache-dir 'dumb-init==1.2.5'
RUN rm -rf /output
LABEL ansible-execution-environment=true
USER 1000

I could add the option to change the user to root, but what I want is to change the permissions on the /runner path so I can run the EE rootless

I tried to add an append_final with a RUN chown -R 1000:1000 /runner but it doesn’t work.

Any idea on how can I achive this or even another solution?

thank you in advance,
Ivan