|
|
@@ -18,7 +18,7 @@ RUN sed 's/main$/main universe/' -i /etc/apt/sources.list; \
|
|
|
wget https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.5/wkhtmltox_0.12.5-1.jessie_amd64.deb; \
|
|
|
dpkg -i wkhtmltox_0.12.5-1.jessie_amd64.deb; \
|
|
|
## ELASTICADUMP
|
|
|
- curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash; - \
|
|
|
+ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -; \
|
|
|
apt-get install nodejs -y; \
|
|
|
npm install elasticdump@3.3.7 -g; \
|
|
|
## COMPOSER
|
|
|
@@ -70,12 +70,8 @@ COPY /docker/php/conf/xdebug.ini /usr/local/etc/php/conf.d
|
|
|
|
|
|
WORKDIR /var/www/html
|
|
|
|
|
|
-CMD if [ "x$OS" = "MAC" ] ; then HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1); \
|
|
|
+CMD HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1); \
|
|
|
setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs && setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs; \
|
|
|
chown -R www-data:www-data /var/www/html/web; \
|
|
|
php-fpm; \
|
|
|
- else HTTPDUSER=$(ps axo user,comm | grep -E '[a]pache|[h]ttpd|[_]www|[w]ww-data|[n]ginx' | grep -v root | head -1 | cut -d\ -f1); \
|
|
|
- setfacl -dR -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs && setfacl -R -m u:"$HTTPDUSER":rwX -m u:$(whoami):rwX app/cache app/logs;\
|
|
|
- chown -R www-data:www-data /var/www/html/web; \
|
|
|
- php-fpm; \
|
|
|
fi;
|