appsody / stacks

Appsody application stacks. This repo will be archived soon.
https://appsody.dev
Apache License 2.0
89 stars 121 forks source link

python-flask: app dependencies not being included due to clash of UIDs #833

Closed henrynash closed 4 years ago

henrynash commented 4 years ago

Describe the bug The python stack (0.2.3) already ensures the application does not run as root (the Docker creates a user called "worker" for this). A recent change also set the env variable APPSODY_USER_RUN_AS_LOCAL, which causes the docker file to be run as the local user...but this clashes with the UID of worker.

To Reproduce Steps to reproduce the behavior:

  1. Create a new project, initing with the python-stack
  2. appsody run
  3. ...you will notice a line that says "/bin/sh: 1: pipenv: Permission denied" in the output, which means that piping failed to run and pull in any new dependencies defined by the local app. This failure is due to the mismatched UIDs