From 07eab26637266da09b0f7cae08d7550bf9a4cd59 Mon Sep 17 00:00:00 2001 From: jeroen Date: Thu, 1 Sep 2022 12:39:43 +0200 Subject: [PATCH] NEW FEATURE: version tag in image --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index d402f02..7d71cde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,8 @@ WORKDIR ${WEBCRON_ROOT} RUN mv .env.sample .env RUN composer install +RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/version ; fi" + USER root ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]