Skip to content Skip to sidebar Skip to footer

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"]

Solution 2:

I see some incorrect syntax in CMD, please use this:

CMD ["uwsgi", "--http", " :8000" , "--wsgi-file", "falconapp.wsgi"]

some double quotes are incorrect and -- is not before wsgi-file .

Post a Comment for "Docker Run Cannot Find Executable "uwsgi""