Build CSS in Dockerfile

This commit is contained in:
video-prize-ranch 2023-06-10 12:23:29 -04:00
parent 6e891c70d8
commit 7c78e156ba
No known key found for this signature in database
1 changed files with 2 additions and 1 deletions

View File

@ -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)"