From: Rafael dos Santos Silva Date: Fri, 18 Dec 2020 20:10:18 +0000 (-0300) Subject: Add env var for image version (#507) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=35806741fe8934367a010e1fcf4de9b483ce038c;p=discourse_docker.git Add env var for image version (#507) --- diff --git a/image/base/Dockerfile b/image/base/Dockerfile index dae8bf0..a7efa4d 100644 --- a/image/base/Dockerfile +++ b/image/base/Dockerfile @@ -8,6 +8,7 @@ ENV RAILS_ENV production #LABEL maintainer="Sam Saffron \"https://twitter.com/samsaffron\"" +ENV IMAGE_VERSION 2.0.`date +%Y%m%d` RUN echo 2.0.`date +%Y%m%d` > /VERSION RUN apt update && apt install -y gnupg sudo curl