NEW FEATURE: version tag in image

This commit is contained in:
Jeroen De Meerleer 2022-09-01 12:39:43 +02:00
parent bf6ba44fa5
commit 07eab26637
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -45,6 +45,8 @@ WORKDIR ${WEBCRON_ROOT}
RUN mv .env.sample .env
RUN composer install
RUN bash -c "if [ -n \"${VERSION}\" ] ; then echo ${VERSION} > ${WEBCRON_ROOT}/version ; fi"
USER root
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]