mirror of
https://codeberg.org/video-prize-ranch/rimgo.git
synced 2025-06-27 15:38:23 +00:00
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
This commit is contained in:
parent
4e3022ce1a
commit
2cb5bcebf3
@ -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)"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user