osx - Best practice: Python development environment with docker for mac -
i work on mac , have python-flask application running inside container. using docker mac.
purpose: want app reload automatically everytime make change in code. want access , make changes code ide(atom) in mac.
my dockerfile creates virtualenv(/app/venv) when build image.
workdir /app add ./myapp /app run virtualenv venv run venv/bin/activate && pip install requirements.lock
when run container, mount code volume can access , make changes code local ide.
volumes: - ./myapp:/app
problem: problem approach venv folder got created in image build disappears because of volume mount made.
what best practice around it?
Comments
Post a Comment