Created
February 14, 2021 17:54
-
-
Save bockor/b062e29bd69527bf00ab0cf1c4c97139 to your computer and use it in GitHub Desktop.
docker // python in bottle
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://hub.docker.com/r/d3fk/python_in_bottle/ | |
docker pull d3fk/python_in_bottle | |
docker run -itd --name nra_site_inventory --rm -p 8080:8080 -v $(pwd)/yEd-SiteInventory:/usr/src/myapp -w /usr/src/myapp d3fk/python_in_bottle:latest python site_inventory.py | |
# This prevents Python from writing out pyc files | |
docker run -itd --name nra_site_inventory --rm -e PYTHONDONTWRITEBYTECODE="1" -p 8080:8080 -v $(pwd)/yEd-SiteInventory:/usr/src/myapp -w /usr/src/myapp d3fk/python_in_bottle:latest python site_inventory.py | |
docker stop nra_site_inventory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment