Skip to content

Commit a12807d

Browse files
committed
update file permission in docker file
1 parent a3dddf8 commit a12807d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
2828
# Copy project files
2929
COPY . .
3030

31+
# Set correct permissions for storage and cache directories
32+
RUN chown -R www-data:www-data /var/www/html/storage /var/www/html/bootstrap/cache && \
33+
chmod -R 775 /var/www/html/storage /var/www/html/bootstrap/cache
34+
3135
# Install PHP dependencies
3236
RUN composer install --no-interaction --prefer-dist --optimize-autoloader
3337

0 commit comments

Comments
 (0)