From d0e80bf79f5e0f98aa911f7a64686fe2ce9e8281 Mon Sep 17 00:00:00 2001
From: Robert Szulist <r.szulist@gmail.com>
Date: Sat, 7 Sep 2019 17:53:27 +0200
Subject: [PATCH] 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.
---
 Dockerfile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index d7226dc..980de92 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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/
 
-- 
GitLab