Skip to content

fix(docker): stop COPYing configs removed in the Tailwind v4 migration - #38

Draft
shanto wants to merge 1 commit into
evolution-foundation:mainfrom
shanto:fix/dockerfile-tailwind-v4-configs
Draft

shanto wants to merge 1 commit into
evolution-foundation:mainfrom
shanto:fix/dockerfile-tailwind-v4-configs

Conversation

@shanto

@shanto shanto commented Oct 31, 2026

Copy link
Copy Markdown

Problem

docker build fails on main, on develop, and on every release tag. The Dockerfile copies two files that no longer exist in the repository:

COPY postcss.config.js ./
COPY tailwind.config.js ./

Both COPY steps abort the build before npm run build ever runs.

Cause

Commit 7801123 — "feat: UI/UX refactor with @evoapi/design-system + full i18n pass" (Nickolas Oliveira, 2026-04-17) — migrated the build from Tailwind 3.4.6 to 4.2.2 through the @tailwindcss/vite plugin:

File Change in 7801123
tailwind.config.js deleted (-77)
postcss.config.js deleted (-6)
vite.config.ts plugins: [react(), tailwindcss()]
src/index.css now starts with @import "tailwindcss"
package.json tailwindcss ^3.4.6 → ^4.2.2, adds @tailwindcss/vite
Dockerfile untouched

Tailwind v4 with the Vite plugin needs neither a PostCSS config nor a JS config — both files were correctly removed. The Dockerfile's two COPY lines were not.

History of the two files:

  • dff2c82 initial commit — added both
  • 5d87fe7 Linting improvements — edited postcss.config.js
  • b364fad Header & logout confirmation — edited tailwind.config.js
  • 7801123 — deleted both, left the Dockerfile stale

Impact

Broken since 2026-04-17, for ~6 months:

  • publish_docker_image_latest.yml — push to main → Docker Hub :latest
  • publish_docker_image_homolog.yml — push to develop
  • publish_docker_image.yml — tags *.*.*

Fix

Remove the two stale COPY lines. Two deletions, nothing else.

Verification

  • vite.config.ts line 3/7: import tailwindcss from "@tailwindcss/vite" and plugins: [react(), tailwindcss()]
  • src/index.css line 1: @import "tailwindcss"
  • package.json: "tailwindcss": "^4.2.2", "@tailwindcss/vite": "^4.2.2"

No PostCSS or JS config is read at build time, so the image builds without them.

7801123 ("feat: UI/UX refactor with @evoapi/design-system + full i18n
pass") moved the build from Tailwind 3.4 to 4.2 through the
@tailwindcss/vite plugin and deleted postcss.config.js and
tailwind.config.js. Tailwind v4 needs neither: the pipeline lives in
vite.config.ts and src/index.css.

The Dockerfile was left COPYing both files, so every docker publish
workflow has failed at the build stage since 2026-04-17.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant