summaryrefslogtreecommitdiff
path: root/build.sh
blob: 2f1fa494b68160b82f2ab4101ec40a1a5d87ed64 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
PROJECT=python
PYTHON_VERSION="${1}"
if [[ -z ${PYTHON_VERSION} ]]; then
    echo "Need a fully qualified Python version to build. [e.g. 3.7.1]"
    exit 1
fi

docker build -t ${PROJECT}:${PYTHON_VERSION} --build-arg PYTHON_VERSION=${PYTHON_VERSION} .