refactor(docker): add laravel perms

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
Miguel Nogueira 2023-08-07 23:08:45 +01:00
parent 0121d7ae77
commit bced142657
No known key found for this signature in database
GPG Key ID: 3C6A7E29AF26D370

4
Dockerfile Normal file → Executable file
View File

@ -24,6 +24,10 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
RUN composer update && composer install
RUN npm ci
# Set Laravel's permissions, though this could be done in the COPY command directly
RUN chown -R www-data:www-data /var/www/html/storage
RUN chmod -R 755 /var/www/html/storage
EXPOSE 9000
CMD ["php-fpm"]