Build:
docker build -t mypythonapp:prod .
Run:
docker run --rm --name pythonapp mypythonapp:prod
Build:
docker build -t mypythonapp:dev --target dev .
Run:
docker run --rm --volume ${PWD}:/app --publish 8888:8888 --name pythonapp mypythonapp:dev
Build:
docker build -t mypythonapp:prod .
Run:
docker run --rm --name pythonapp mypythonapp:prod
Build:
docker build -t mypythonapp:dev --target dev .
Run:
docker run --rm --volume ${PWD}:/app --publish 8888:8888 --name pythonapp mypythonapp:dev