Hi. I am trying to use the ubuntu base image to install a pip package and run it as the abc user. I cant get it to work though. In a regular linux install the same commands work as expect (sudo for the python install obviously).
FROM lsiobase/ubuntu:bionic RUN apt update && \ apt install python3-pip -y && \ python3 -m pip install <package> CMD tail -f /dev/null
This particular pip package makes use of a config file in /home/user/.config/package name/. My first guess is that this could be the route of all the issues. I just dont know how to fix it.
Once created and logged in as the abc user through my portainer interface, trying to run a command gives
PermissionError: [Errno 13] Permission denied: '/root/.config/package name
Can anyone help me with this? I’ve done a lot of googling over the last couple of days and tried a lot of things that I dont really understand and always end up with the same error.