{"action":"created","issue":{"url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker/issues/14","repository_url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker","labels_url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker/issues/14/comments","events_url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker/issues/14/events","html_url":"https://github.com/tiangolo/uwsgi-nginx-flask-docker/issues/14","id":251888183,"number":14,"title":"Changing `WORKDIR` causes uWSGI to not find app","user":{"login":"DanielGibbsNZ","id":2750246,"avatar_url":"https://avatars3.githubusercontent.com/u/2750246?v=4","gravatar_id":"","url":"https://api.github.com/users/DanielGibbsNZ","html_url":"https://github.com/DanielGibbsNZ","followers_url":"https://api.github.com/users/DanielGibbsNZ/followers","following_url":"https://api.github.com/users/DanielGibbsNZ/following{/other_user}","gists_url":"https://api.github.com/users/DanielGibbsNZ/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielGibbsNZ/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielGibbsNZ/subscriptions","organizations_url":"https://api.github.com/users/DanielGibbsNZ/orgs","repos_url":"https://api.github.com/users/DanielGibbsNZ/repos","events_url":"https://api.github.com/users/DanielGibbsNZ/events{/privacy}","received_events_url":"https://api.github.com/users/DanielGibbsNZ/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-22T09:08:27Z","updated_at":"2017-08-24T00:37:47Z","closed_at":"2017-08-24T00:21:50Z","body":"I have a `Dockerfile` with the following contents:\r\n\r\n    FROM tiangolo/uwsgi-nginx-flask:python3.6\r\n    COPY app /app\r\n    COPY foo /tmp/foo\r\n    WORKDIR /tmp/foo\r\n    RUN some other commands\r\n    # More RUN commands\r\n\r\nWhen I build this image I get the following errors:\r\n\r\n    ModuleNotFoundError: No module named 'main'\r\n    unable to load app 0 (mountpoint='') (callable not found or import error)\r\n\r\nWhy does the `WORKDIR` in my `Dockerfile` affect the functionality of the base image?\r\n\r\nMy apologies if this is obvious or expected behaviour; I don't have much Docker experience.\r\n"},"comment":{"url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker/issues/comments/324499935","html_url":"https://github.com/tiangolo/uwsgi-nginx-flask-docker/issues/14#issuecomment-324499935","issue_url":"https://api.github.com/repos/tiangolo/uwsgi-nginx-flask-docker/issues/14","id":324499935,"user":{"login":"tiangolo","id":1326112,"avatar_url":"https://avatars0.githubusercontent.com/u/1326112?v=4","gravatar_id":"","url":"https://api.github.com/users/tiangolo","html_url":"https://github.com/tiangolo","followers_url":"https://api.github.com/users/tiangolo/followers","following_url":"https://api.github.com/users/tiangolo/following{/other_user}","gists_url":"https://api.github.com/users/tiangolo/gists{/gist_id}","starred_url":"https://api.github.com/users/tiangolo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiangolo/subscriptions","organizations_url":"https://api.github.com/users/tiangolo/orgs","repos_url":"https://api.github.com/users/tiangolo/repos","events_url":"https://api.github.com/users/tiangolo/events{/privacy}","received_events_url":"https://api.github.com/users/tiangolo/received_events","type":"User","site_admin":false},"created_at":"2017-08-24T00:37:47Z","updated_at":"2017-08-24T00:37:47Z","body":"Cool! I'm glad to help. Thanks for replying back and closing the issue. :heavy_check_mark: "}}
{"actor":{"display_login":"tiangolo"}}