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