Refactor directory creation in Dockerfile
Consolidate directory creation commands and clean up Dockerfile.
This commit is contained in:
+1
-4
@@ -3,8 +3,6 @@ FROM php:8.2-fpm-alpine
|
||||
RUN apk add --no-cache nginx nodejs npm supervisor \
|
||||
&& docker-php-ext-install pdo pdo_mysql mysqli bcmath pcntl
|
||||
|
||||
COPY docker/php.ini /usr/local/etc/php/conf.d/uploads.ini
|
||||
|
||||
WORKDIR /app
|
||||
COPY . .
|
||||
|
||||
@@ -13,8 +11,7 @@ RUN composer install --optimize-autoloader
|
||||
|
||||
RUN npm ci && npm run build
|
||||
|
||||
RUN mkdir -p storage/framework/{sessions,views,cache} \
|
||||
&& mkdir -p storage/app/livewire-tmp \
|
||||
RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/app/livewire-tmp \
|
||||
&& chmod -R 775 storage bootstrap/cache
|
||||
|
||||
RUN php artisan storage:link
|
||||
|
||||
Reference in New Issue
Block a user