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