Allow to select Python version at build

With this anyone can effectively use Python 2 or 3 using --build-arg
The default version is 2.
This commit is contained in:
Robert Szulist 2019-09-07 17:53:27 +02:00
parent 6fad4f3715
commit d0e80bf79f
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
FROM python:2-alpine
ARG PYTHON_VERSION=2
FROM python:${PYTHON_VERSION}-alpine
COPY nginx-ldap-auth-daemon.py /usr/src/app/