Docker build with app version added.

This commit is contained in:
nirpt
2022-08-29 12:32:20 +02:00
parent 9cbf68a99e
commit 2aa867aa2a
+2 -3
View File
@@ -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 \