Refactor directory creation in Dockerfile

Consolidate directory creation commands and clean up Dockerfile.
This commit is contained in:
Fernando
2026-05-11 01:07:51 -06:00
committed by GitHub
parent c2a7efeb6a
commit f54acb8675
+1 -4
View File
@@ -3,8 +3,6 @@ FROM php:8.2-fpm-alpine
RUN apk add --no-cache nginx nodejs npm supervisor \ RUN apk add --no-cache nginx nodejs npm supervisor \
&& docker-php-ext-install pdo pdo_mysql mysqli bcmath pcntl && docker-php-ext-install pdo pdo_mysql mysqli bcmath pcntl
COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini
WORKDIR /app WORKDIR /app
COPY . . COPY . .
@@ -13,8 +11,7 @@ RUN composer install --optimize-autoloader
RUN npm ci && npm run build RUN npm ci && npm run build
RUN mkdir -p storage/framework/{sessions,views,cache} \ RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/app/livewire-tmp \
&& mkdir -p storage/app/livewire-tmp \
&& chmod -R 775 storage bootstrap/cache && chmod -R 775 storage bootstrap/cache
RUN php artisan storage:link RUN php artisan storage:link