Flask app with remote interpreter inside docker

I want to run Flask in development mode (FLASK_ENV=development)

This means the server will be restarted automatically when I change a file.

With a remote interpreter inside SSH this works because a change to a file is automatically uploaded.

 

How can I get a similar experience with Docker?

I would like to create an image from a Dockerfile and run a container from that.

But if I understand correctly I have to recreate that container each time? (Shift-F10)

 

Should I solve this with volumes or how should I do this?

Is there a good example?

 

1 comment
Comment actions Permalink

I added a mount binding and now it seems to work fine.

0

Please sign in to leave a comment.