Docker build with app version added.
This commit is contained in:
+2
-3
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user