mirror of
https://github.com/invoiceninja/dockerfiles.git
synced 2025-12-31 19:47:25 +01:00
composer is not needed, permissions are already correct in the image
This commit is contained in:
12
debian/Dockerfile
vendored
12
debian/Dockerfile
vendored
@@ -39,8 +39,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||||||
RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
|
RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
|
||||||
${php_require} \
|
${php_require} \
|
||||||
${php_suggest} \
|
${php_suggest} \
|
||||||
${php_extra} \
|
${php_extra}
|
||||||
@composer
|
|
||||||
|
|
||||||
# Configure PHP
|
# Configure PHP
|
||||||
RUN ln -s "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
RUN ln -s "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
@@ -62,14 +61,7 @@ RUN curl -s "https://api.github.com/repos/invoiceninja/invoiceninja/releases/lat
|
|||||||
cut -d '"' -f 4 | \
|
cut -d '"' -f 4 | \
|
||||||
xargs curl -sL | \
|
xargs curl -sL | \
|
||||||
tar -xz --strip-components=1 -C /var/www/html \
|
tar -xz --strip-components=1 -C /var/www/html \
|
||||||
&& cp /var/www/html/resources/views/react/index.blade.php /var/www/html/public/index.html \
|
&& ln -s /var/www/html/resources/views/react/index.blade.php /var/www/html/public/index.html \
|
||||||
# File permissions
|
|
||||||
&& find /var/www/html/ -type f -exec chmod 644 {} \; \
|
|
||||||
# Directory permissions
|
|
||||||
&& find /var/www/html/ -type d -exec chmod 755 {} \; \
|
|
||||||
# Install dependencies
|
|
||||||
&& composer install --no-dev --no-scripts --no-autoloader \
|
|
||||||
&& composer dump-autoload --optimize \
|
|
||||||
&& php artisan optimize \
|
&& php artisan optimize \
|
||||||
&& php artisan storage:link \
|
&& php artisan storage:link \
|
||||||
# Workaround for application updates
|
# Workaround for application updates
|
||||||
|
|||||||
Reference in New Issue
Block a user