fix(docker release): install tailwindcss and generate css files
Some checks are pending
Build and Push Docker Image to GHCR / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image to GHCR / build-and-push (push) Waiting to run
This commit is contained in:
@@ -9,6 +9,12 @@ COPY go.mod go.sum ./
|
|||||||
RUN go mod download
|
RUN go mod download
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
||||||
|
# tailwindcss needed for go generate
|
||||||
|
RUN curl -sLO https://github.com/tailwindlabs/tailwindcss/releases/download/v4.1.13/tailwindcss-linux-x64
|
||||||
|
RUN chmod +x tailwindcss-linux-x64
|
||||||
|
RUN mv tailwindcss-linux-x64 /usr/local/bin/tailwindcss
|
||||||
|
|
||||||
|
RUN go generate
|
||||||
RUN go build -ldflags="-w -s" -o passport
|
RUN go build -ldflags="-w -s" -o passport
|
||||||
|
|
||||||
# ---- Runtime Stage ----
|
# ---- Runtime Stage ----
|
||||||
|
|||||||
Reference in New Issue
Block a user