From 1bfccb0442d7dca7a7e957f75e34d921c8ecb256 Mon Sep 17 00:00:00 2001 From: Bienchen <stefanbienert@me.com> Date: Fri, 19 Aug 2022 16:41:36 +0200 Subject: [PATCH] Improved validation Dockerfile --- validation/Dockerfile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/validation/Dockerfile b/validation/Dockerfile index 8b4e6ba..1cd2da4 100644 --- a/validation/Dockerfile +++ b/validation/Dockerfile @@ -1,4 +1,4 @@ -ARG VERSION_PYTHON="3.7" +ARG VERSION_PYTHON="3.9" ARG VERSION_BASE_IMAGE="python:${VERSION_PYTHON}-alpine3.16" FROM ${VERSION_BASE_IMAGE} # We need to declare ARGs again which were declared before the build stage @@ -131,11 +131,14 @@ RUN set -e pipefail; \ apk del curl -# for development -#RUN set -e pipefail; \ -# apk add bash emacs gcc build-base; \ -# /usr/local/bin/python -m pip install pylint black; \ -# apk del gcc build-base +# switch to development version via build-arg +ARG ADD_DEV +RUN set -e pipefail; \ + if test xYES == x`echo ${ADD_DEV} | tr '[:lower:]' '[:upper:]'`; then \ + apk add bash emacs gcc build-base; \ + /usr/local/bin/python -m pip install pylint black; \ + apk del gcc build-base; \ + fi ## Add a dedicated user for mmCIF file validation ## MMCIF_USER_ID can be used to avoid file permission issues in development. -- GitLab