From 7c78e156baf1de86aef2c46c9a86501f7cfd58cf Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sat, 10 Jun 2023 12:23:29 -0400 Subject: [PATCH] Build CSS in Dockerfile --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 1e1a9a8..806f639 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,9 +3,10 @@ FROM --platform=$BUILDPLATFORM golang:alpine AS build ARG TARGETARCH WORKDIR /src -RUN apk --no-cache add ca-certificates git +RUN apk --no-cache add ca-certificates git nodejs npm COPY . . +RUN npx tailwindcss -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/video-prize-ranch/rimgo/pages.VersionInfo=$(date '+%Y-%m-%d')-$(git rev-list --abbrev-commit -1 HEAD)"