Open gcasale82 opened 1 year ago
it worked in this way : slim build --target mailserver:latest --tag mailserver:slim --exec "su -c 'python3 mailserver.py' pmail" --expose 2025 -http-probe=false
, was not getting pmail user for running the command.Not taking the USER from Dockerfile , even using option --run-target-as-user
I was trying to slim an image that works perfectly , but when running this command :
slim build --target mailserver:latest --tag mailserver:slim --exec "python3 mailserver.py" --expose 2025 -http-probe=false --preserve-path /home/pmail/.local/lib/python3.9/site-packages
it seems fails to load the library I installed with pip3 in requirements :however if I run the image import is ok :
how can I solve this issue ?