diff --git a/Dockerfile b/Dockerfile index 6d4af7ff..36cece28 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,10 @@ RUN echo "upload_max_filesize=50M" > /usr/local/etc/php/conf.d/uploads.ini \ WORKDIR /app 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 composer install --optimize-autoloader @@ -21,10 +25,6 @@ RUN npm ci && \ VITE_REVERB_APP_KEY=fmoknd2swp3clsqfbdpg \ 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 COPY nginx.conf /etc/nginx/nginx.conf