Add env var for image version (#507)
authorRafael dos Santos Silva <xfalcox@gmail.com>
Fri, 18 Dec 2020 20:10:18 +0000 (17:10 -0300)
committerGitHub <noreply@github.com>
Fri, 18 Dec 2020 20:10:18 +0000 (17:10 -0300)
image/base/Dockerfile

index dae8bf0670f436c4d65616bf2ca5f31dea1113ac..a7efa4db03094a4a60cf7710862ac39d703e744c 100644 (file)
@@ -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