From 2aa867aa2af166668dab44b2be29a14a596da778 Mon Sep 17 00:00:00 2001 From: nirpt <108334749+nirpt@users.noreply.github.com> Date: Mon, 29 Aug 2022 12:32:20 +0200 Subject: [PATCH] Docker build with app version added. --- docker/Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index e900a6a..17f1fd6 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,5 +1,5 @@ FROM php:7.4.21-apache -ENV APP_VERSION=1.0.0 +ARG APP_VERSION=v1.0.0Do RUN apt-get update && \ apt-get install -y --no-install-recommends less nano tini curl tar git zip unzip && \ @@ -9,8 +9,7 @@ RUN apt-get update && \ apt-get autoremove -y && \ apt-get clean -y -# curl -SL -o app.tar.gz "https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/archive/${APP_VERSION}.tar.gz" \ -RUN curl -SL -o app.tar.gz "https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/archive/refs/heads/master.tar.gz" \ +RUN curl -SL -o app.tar.gz "https://github.com/giandonatoinverso/PHP-Dynamic-Qr-code/archive/${APP_VERSION}.tar.gz" \ && mkdir -p /app \ && tar xvf app.tar.gz -C /app --strip-components=1 \ && cp -r /app/qrcode/** /var/www/html \