accept docker build --build-arg LSMB_VERSION=

This commit is contained in:
maikkeli 2016-01-27 20:32:47 +10:30
parent 469dc75708
commit ffc7f8d441

View File

@ -36,9 +36,15 @@ RUN apt-get install -y \
PGObject::Type::DateTime \ PGObject::Type::DateTime \
App::LedgerSMB::Admin App::LedgerSMB::Admin
# Build time variables # Set LedgerSMB version (git tag/branch/commit)
ENV LSMB_VERSION 1.5.0-beta3 # 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 && \ RUN cd /srv && \
git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb git clone https://github.com/ledgersmb/LedgerSMB.git ledgersmb