Skip to content

Commit

Permalink
permissions fix
Browse files Browse the repository at this point in the history
  • Loading branch information
th0rn0 committed Jul 25, 2024
1 parent 5550c0f commit acfad49
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ services:
context: .
dockerfile: resources/docker/php/Dockerfile
target: php-base
entrypoint: [ "php", "artisan" ]
entrypoint: [ "/entrypoint-queue.sh" ]
command: [ "queue:work" ]
# user: "1000"
volumes:
Expand Down
8 changes: 5 additions & 3 deletions resources/docker/php/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,15 @@ RUN chown -R www-data:www-data /var/www

WORKDIR /var/www/html

COPY resources/docker/php/entrypoint.sh /custom-entrypoint.sh
COPY resources/docker/php/entrypoint-php.sh /entrypoint-php.sh
COPY resources/docker/php/entrypoint-queue.sh /entrypoint-queue.sh

COPY resources/docker/php/uploads.ini /usr/local/etc/php/conf.d/uploads.ini

RUN chmod +x /custom-entrypoint.sh
RUN chmod +x /entrypoint-php.sh
RUN chmod +x /entrypoint-queue.sh

ENTRYPOINT ["/custom-entrypoint.sh"]
ENTRYPOINT ["/entrypoint-php.sh"]

FROM php-base as php-composer

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env sh
...

php artisan optimize
php artisan config:cache
php artisan view:cache
Expand Down
5 changes: 5 additions & 0 deletions resources/docker/php/entrypoint-queue.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env sh

php artisan config:cache

php artisan "$@"

0 comments on commit acfad49

Please sign in to comment.