After running the pyinstaller, both entrypoints fix the permissions by running
chown -R --reference=. ./dist/linux and chown -R --reference=. ./dist/windows
That's usually not enough, and it leaves files/folders with root ownership.
So I have to run
docker run -v $PWD/win:/src cdrx/pyinstaller-windows:python3 'chown -R --reference=/src /src'
to clean that up every time.
After running the pyinstaller, both entrypoints fix the permissions by running
chown -R --reference=. ./dist/linux
andchown -R --reference=. ./dist/windows
That's usually not enough, and it leaves files/folders with root ownership.So I have to run
docker run -v $PWD/win:/src cdrx/pyinstaller-windows:python3 'chown -R --reference=/src /src'
to clean that up every time.Proposed fix: Change line 42 of the entrypoint files to
chown -R --reference=. ./dist ./__pycache__
https://github.com/cdrx/docker-pyinstaller/blob/master/entrypoint-linux.sh#L42 https://github.com/cdrx/docker-pyinstaller/blob/master/entrypoint-windows.sh#L42Steps to reproduce: