From f783110044b0cc8c579c86c40cb2081e5bb1641c Mon Sep 17 00:00:00 2001 From: Bart Geesink Date: Fri, 26 Jul 2024 08:37:47 +0200 Subject: [PATCH] Docker: Add env variables that set the version info in the Docker container --- docker/Dockerfile.prod | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index 95de2852c..aab4ab55c 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -1,4 +1,11 @@ FROM ghcr.io/openconext/openconext-basecontainers/php72-apache2:latest +ARG APP_VERSION +ARG GIT_SHA +ARG GIT_COMMIT_TIME +ENV OPENCONEXT_APP_VERSION=${APP_VERSION} +ENV OPENCONEXT_GIT_SHA=${GIT_SHA} +ENV OPENCONEXT_COMMIT_DATE=${GIT_COMMIT_TIME} + COPY *.tar.bz2 /tmp/ RUN tar -xvjf /tmp/*.tar.bz2 -C /var/www/html/ && \ rm -rf /tmp/*.tar.bz2