This is the companion source for the article How To Use Docker With Python. The article goes into the source and what's available in more depth, but if you have Gnu make, you can follow these steps:
Source: 01-docker-flask
Usage:
See the commands in the article, or use the Makefile
cd 01-docker-flask
make build
make run
make browse
Source: 02-docker-flask-alpine
Usage:
cd 02-docker-flask-alpine
make build
make run
make browse
Source: 03-docker-compose-django
Usage:
cd 03-docker-compose-django
make up
# Wait for stack (esp Postgres) to come up, about 25 seconds
make browse
See the article for more details on the commands that are available or running without Gnu make.
For more on this source, see the article Python Docker Examples: SageMath in a Container.
Source: 04-docker-sagemath
Usage:
cd 04-docker-sagemath
# Building
./build.sh
# Running the container
./run.sh
# Inside the container, use ./run_lab.sh to launch Jupyter Lab with Sage enabled.