Build CSS in Dockerfile
This commit is contained in:
parent
6e891c70d8
commit
7c78e156ba
|
@ -3,9 +3,10 @@ FROM --platform=$BUILDPLATFORM golang:alpine AS build
|
||||||
ARG TARGETARCH
|
ARG TARGETARCH
|
||||||
|
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
RUN apk --no-cache add ca-certificates git
|
RUN apk --no-cache add ca-certificates git nodejs npm
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
RUN npx tailwindcss -i static/tailwind.css -o static/app.css -m
|
||||||
RUN go mod download
|
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)"
|
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)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue