Skip to content

Commit

Permalink
move user install script to after composer install
Browse files Browse the repository at this point in the history
  • Loading branch information
braceyourself committed Jan 18, 2025
1 parent 3a05412 commit 8bfeb6c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Concerns/BuildsDockerfile.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ private function getDockerfile()
&& chown -R www-data:www-data /var/www
USER www-data
{$this->getUserInstallScript()}
COPY composer.json composer.lock ./
{$this->copyLocalRepositories()}
RUN composer install --no-dev --no-interaction --no-progress --no-scripts
Expand All @@ -66,6 +64,8 @@ private function getDockerfile()
&& chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache \
&& composer run-script post-autoload-dump
{$this->getUserInstallScript()}
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
Expand Down

0 comments on commit 8bfeb6c

Please sign in to comment.