From ffc7f8d441fe76006b7065fdb58d31d6f5e9bf71 Mon Sep 17 00:00:00 2001 From: maikkeli Date: Wed, 27 Jan 2016 20:32:47 +1030 Subject: [PATCH] accept docker build --build-arg LSMB_VERSION= --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 51a6c19..572e59e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,9 +36,15 @@ RUN apt-get install -y \ PGObject::Type::DateTime \ App::LedgerSMB::Admin -# Build time variables -ENV LSMB_VERSION 1.5.0-beta3 +# Set LedgerSMB version (git tag/branch/commit) +# Change the following line or set arg on docker build commandline; +# eg: +# docker build --build-arg LSMB_VERSION=1.4.0 ./ +# docker build --build-arg LSMB_VERSION=1c00d61 ./ +ARG LSMB_VERSION=1.5.0-beta3 +ENV LSMB_VERSION ${LSMB_VERSION} +# Install LedgerSMB RUN cd /srv && \ git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb