From fba5b250a7db331c95782caa4bdd53c31c26f3e9 Mon Sep 17 00:00:00 2001 From: MoonTestUse1 Date: Sun, 5 Jan 2025 05:15:48 +0600 Subject: [PATCH] =?UTF-8?q?=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D1=81=D0=BC=D0=B5=D0=BD=D1=8B=20=D1=82?= =?UTF-8?q?=D0=B5=D0=BC=D1=8B,=20=D0=B2=20=D0=BF=D1=80=D0=BE=D1=88=D0=BB?= =?UTF-8?q?=D1=8B=D0=B9=20=D1=80=D0=B0=D0=B7=20=D0=BD=D0=B5=20=D0=B4=D0=BE?= =?UTF-8?q?=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB=D0=BE=D1=81=D1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/frontend/Dockerfile | 18 +++++++++++++----- frontend/tailwind.config.js | 4 +++- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/docker/frontend/Dockerfile b/docker/frontend/Dockerfile index 7ada1b4..e5cab53 100644 --- a/docker/frontend/Dockerfile +++ b/docker/frontend/Dockerfile @@ -6,14 +6,22 @@ WORKDIR /app COPY frontend/package*.json ./ # Очищаем cache и node_modules -RUN npm cache clean --force -RUN rm -rf node_modules package-lock.json +RUN npm cache clean --force && \ + rm -rf node_modules package-lock.json -# Устанавливаем зависимости и плагин для форм +# Устанавливаем все зависимости включая devDependencies RUN npm install && \ - npm install -D @tailwindcss/forms + npm install -D @tailwindcss/forms && \ + npm cache clean --force -# Копируем исходный код +# Копируем конфигурационные файлы +COPY frontend/tailwind.config.js ./ +COPY frontend/postcss.config.js ./ +COPY frontend/vite.config.ts ./ +COPY frontend/tsconfig.json ./ +COPY frontend/tsconfig.node.json ./ + +# Копируем остальной исходный код COPY frontend/ . # Открываем порт для Vite diff --git a/frontend/tailwind.config.js b/frontend/tailwind.config.js index bf081b6..a9aeae2 100644 --- a/frontend/tailwind.config.js +++ b/frontend/tailwind.config.js @@ -13,6 +13,8 @@ export default { }, }, plugins: [ - require('@tailwindcss/forms') + require('@tailwindcss/forms')({ + strategy: 'class' + }) ], } \ No newline at end of file