Docker Run Cannot Find Executable "uwsgi"
I am trying to deploy a falcon app with Docker. Here is my Dockerfile: FROM python:2-onbuild # Set the working directory to /app WORKDIR /app # Copy the current directory content
Solution 1:
very often you have to write the full patch for the executable. If you go to your container and run this command whereis uwsgi
it will tell you it is at /usr/local/bin/uwsgi
so your CMD should be in the same form:
CMD ["/usr/local/bin/uwsgi", "--http", " :8000" , "--wsgi-file", "falconapp.wsgi"]
Post a Comment for "Docker Run Cannot Find Executable "uwsgi""