From 3db62525618927b8113bae5b97075bd32e7a8936 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20B=C3=BCchner?= Date: Thu, 10 Sep 2020 11:08:33 +0200 Subject: [PATCH] Added tagged version to all Drupal sites as comment --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index 55cfd0ec..391f1200 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,10 @@ RUN docker-php-ext-install gd COPY / /tmp/cdv WORKDIR /tmp/cdv RUN composer install --no-dev +# Add git tag version to PHP file +RUN { \ + echo -e "<\x21-- $(git describe --tags) -->"; \ + } >> /tmp/cdv/web/themes/custom/relaunch2018/templates/html.html.twig # from https://github.com/docker-library/drupal/blob/master/8.7/apache/Dockerfile FROM php:7.4-apache