diff --git a/.claude/settings.json b/.claude/settings.json new file mode 100644 index 0000000..15f7142 --- /dev/null +++ b/.claude/settings.json @@ -0,0 +1,11 @@ +{ + "permissions": { + "allow": [ + "Bash(grep \"App\\\\\\\\\\\\\\\\\" /Users/uzmacbook/felix/sifatbaho-php/database/migrations/*.php)", + "Bash(docker exec:*)", + "Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8005/)", + "Bash(curl -v http://localhost:8005/)", + "Bash(curl -s -o /dev/null -w \"%{http_code}\" http://localhost:8005/login)" + ] + } +} diff --git a/_docker/app/Dockerfile b/_docker/app/Dockerfile index 94e1fe6..424dc81 100755 --- a/_docker/app/Dockerfile +++ b/_docker/app/Dockerfile @@ -1,4 +1,4 @@ -FROM php:8.2-fpm-buster +FROM php:8.2-fpm-bullseye WORKDIR /var/www @@ -10,19 +10,14 @@ RUN apt-get update && apt-get install -y \ zip unzip \ git \ libmagickwand-dev --no-install-recommends && \ - docker-php-ext-install bcmath && \ - docker-php-ext-install gd && \ - docker-php-ext-install zip && \ + docker-php-ext-install bcmath gd zip && \ + docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql && \ + docker-php-ext-install pdo pdo_pgsql pgsql && \ pecl install imagick && \ docker-php-ext-enable imagick && \ apt-get clean && \ rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* -# Install Postgre PDO -RUN apt-get install -y libpq-dev \ - && docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql \ - && docker-php-ext-install pdo pdo_pgsql pgsql - COPY _docker/app/php.ini /usr/local/etc/php/conf.d/php.ini COPY app /var/www/app @@ -47,13 +42,12 @@ RUN curl -sS https://getcomposer.org/installer | php -- \ # alias RUN echo "alias a='artisan'" >> /root/.bashrc -RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - +RUN curl -sL https://deb.nodesource.com/setup_18.x | bash - RUN apt-get install -y nodejs RUN composer install \ --no-interaction \ --no-plugins \ - --no-suggest \ --no-scripts \ --no-autoloader \ --prefer-dist