I have a flask app inside of a docker container. I would like to use the python package zappa to deploy that app to Amazon Web Services.
Unfortunately zappa requires that it and all of my apps dependencies be installed in a python virtual environment.
So I have rebuilt my docker image and moved everything into a virtual environment in it.
The problem is that now i can't run commands like:
docker exec <container> flask <sub command> because flask is installed in a virtual environment which has not been activated.
I can still do this:
host$ docker exec -it <container> bash container$ source venv/bin/activate container$ flask <sub command> Also, I can no longer run my default Dockerfile CMD (gunicorn) because that is also is my virtual environment.
Does this make any more sense?
ENTRYPOINTin theDockerfile. It is something we can help with but you don't provide much information on what needs to happen.