Using Python via Docker
This directory contains
Dockerfile to make it easy to get up and running with
Python via Docker.
Running the container
We are using
Makefile to simplify docker commands within make commands.
You can download the makefile from git.
# curl -O https://raw.githubusercontent.com/mediadesignpractices/docker/master/python/Makefile
Build the container and start a bash
$ make bash
Build the container and start a python shell
files in local directory are copied in to the container
$ make python 'myfile.py'
Mount a volume for external data sets
$ make DATA=~/mydata python
Run Python 3
make TAG=python:python3 VERSION=python3 test # (or python/bash)
Prints all make tasks
$ make help