fix(docker): run tailwindcss after COPY src, not during npm ci #9
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/dockerfile-tailwind-build-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
postinstall.sh ran tailwindcss unconditionally, but the Dockerfile
copies src/ after npm ci, so app.css didn't exist yet. Guard the
postinstall call with a file-existence check (skips silently in Docker),
and add an explicit RUN step in the Dockerfile after COPY src/ where
the input file is guaranteed to be present.