fix: crear storage dirs antes de composer install segunda revision
This commit is contained in:
+4
-4
@@ -11,6 +11,10 @@ RUN echo "upload_max_filesize=50M" > /usr/local/etc/php/conf.d/uploads.ini \
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/app/livewire-tmp storage/logs \
|
||||||
|
&& chmod -R 775 storage bootstrap/cache \
|
||||||
|
&& chown -R nobody:nginx storage bootstrap/cache
|
||||||
|
|
||||||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
||||||
RUN composer install --optimize-autoloader
|
RUN composer install --optimize-autoloader
|
||||||
|
|
||||||
@@ -21,10 +25,6 @@ RUN npm ci && \
|
|||||||
VITE_REVERB_APP_KEY=fmoknd2swp3clsqfbdpg \
|
VITE_REVERB_APP_KEY=fmoknd2swp3clsqfbdpg \
|
||||||
npm run build
|
npm run build
|
||||||
|
|
||||||
RUN mkdir -p storage/framework/sessions storage/framework/views storage/framework/cache storage/app/livewire-tmp storage/logs \
|
|
||||||
&& chmod -R 775 storage bootstrap/cache \
|
|
||||||
&& chown -R nobody:nginx storage bootstrap/cache
|
|
||||||
|
|
||||||
RUN rm -rf public/storage && php artisan storage:link
|
RUN rm -rf public/storage && php artisan storage:link
|
||||||
|
|
||||||
COPY nginx.conf /etc/nginx/nginx.conf
|
COPY nginx.conf /etc/nginx/nginx.conf
|
||||||
|
|||||||
Reference in New Issue
Block a user