From 91983c0aed97f2335a3e613eecb24514d07e1376 Mon Sep 17 00:00:00 2001 From: mcoder Date: Fri, 17 Apr 2026 00:24:11 +0330 Subject: [PATCH] Add --- docker/php/Dockerfile | 13 ------------- docker/php/entrypoint.sh | 10 ---------- postcss.config.js | 6 ------ tailwind.config.js | 11 ----------- 4 files changed, 40 deletions(-) delete mode 100644 postcss.config.js delete mode 100644 tailwind.config.js diff --git a/docker/php/Dockerfile b/docker/php/Dockerfile index 09e139e..b2fab8e 100644 --- a/docker/php/Dockerfile +++ b/docker/php/Dockerfile @@ -4,11 +4,6 @@ FROM php:8.2-fpm-bookworm ARG COMPOSER_REGISTRY="https://mirror-composer.runflare.com" ARG LINUX_REGISTRY="http://deb.debian.org/debian" ARG SECURITY_REGISTRY="http://security.debian.org/debian-security" -ARG NPM_REGISTRY="https://registry.npmjs.org" - -ARG NODE_VERSION="20.12.2" -ARG NODE_REGISTRY="https://nodejs.org/dist" - # تغییر سورس‌های apt RUN sed -i "s|http://deb.debian.org/debian|${LINUX_REGISTRY}|g" /etc/apt/sources.list.d/debian.sources \ && sed -i "s|http://security.debian.org/debian-security|${SECURITY_REGISTRY}|g" /etc/apt/sources.list.d/debian.sources \ @@ -25,14 +20,6 @@ RUN apt-get update && apt-get install -y --allow-downgrades --no-install-recomme ca-certificates \ && apt-get clean && rm -rf /var/lib/apt/lists/* -# === [ نصب Node.js نسخه 20 ] === -# از آنجا که مخازن دبیان نسخه 18 را دارند، نسخه 20 را مستقیم از مخزن رسمی می‌گیریم -RUN curl -fsSLO "${NODE_REGISTRY}/v${NODE_VERSION}/node-v${NODE_VERSION}-linux-x64.tar.xz" \ - && tar -xJf "node-v${NODE_VERSION}-linux-x64.tar.xz" -C /usr/local --strip-components=1 \ - && rm "node-v${NODE_VERSION}-linux-x64.tar.xz" - -# تنظیم ریجستری اختصاصی NPM -RUN npm config set registry ${NPM_REGISTRY} COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ RUN install-php-extensions zip bcmath pdo pdo_mysql diff --git a/docker/php/entrypoint.sh b/docker/php/entrypoint.sh index 3cbf782..1743abb 100644 --- a/docker/php/entrypoint.sh +++ b/docker/php/entrypoint.sh @@ -21,17 +21,7 @@ fi echo "[+] Generating App Key..." php artisan key:generate --no-interaction -# ۴. پاکسازی node_modules قدیمی -echo "[+] Cleaning old node_modules..." -rm -rf node_modules package-lock.json -# ۵. نصب پکیج‌های NPM و بیلد فرانت‌اند -echo "[+] Installing NPM dependencies..." -npm config set registry "http://192.168.1.201:8081/repository/npm-group/" -npm install - -echo "[+] Building frontend assets..." -npm run build # ۶. آماده‌سازی پایگاه داده echo "[+] Running database migrations..." diff --git a/postcss.config.js b/postcss.config.js deleted file mode 100644 index af9d8dc..0000000 --- a/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -export default { - plugins: { - '@tailwindcss/postcss': {}, - autoprefixer: {}, - }, -} \ No newline at end of file diff --git a/tailwind.config.js b/tailwind.config.js deleted file mode 100644 index 11610f2..0000000 --- a/tailwind.config.js +++ /dev/null @@ -1,11 +0,0 @@ -/** @type {import('tailwindcss').Config} */ -export default { - content: [ - "./resources/**/*.blade.php", - "./resources/**/*.js", - ], - theme: { - extend: {}, - }, - plugins: [], -} \ No newline at end of file