From 2cb5bcebf30bd83432e307770c14cb0ae813c2b4 Mon Sep 17 00:00:00 2001 From: nyuuzyou Date: Thu, 27 Mar 2025 21:04:13 +0000 Subject: [PATCH] Fix Docker build failure with Tailwind CSS v4 This PR fixes the Docker build failure caused by incompatibility with the new CLI command structure of Tailwind CSS v4. Previously, the build failed with the error: `npm error could not determine executable to run.` https://github.com/tailwindlabs/tailwindcss/discussions/15820 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d1eb452..e54528f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ WORKDIR /src RUN apk --no-cache add ca-certificates git nodejs npm COPY . . -RUN npx tailwindcss -i static/tailwind.css -o static/app.css -m +RUN npx @tailwindcss/cli -i static/tailwind.css -o static/app.css -m RUN go mod download RUN GOOS=linux GOARCH=$TARGETARCH CGO_ENABLED=0 go build -ldflags "-X codeberg.org/rimgo/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)"