Skip to content

Commit b78c652

Browse files
add: install nodejs and tailwindcss in Dockerfile for CSS generation
1 parent 867a1c5 commit b78c652

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

potblog.Dockerfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
FROM golang:1.23-alpine AS builder
33

44
# Install build dependencies
5-
RUN apk add --no-cache git make
5+
RUN apk add --no-cache git make nodejs npm
66

77
# Install templ
88
RUN go install github.com/a-h/templ/cmd/templ@latest
@@ -14,6 +14,12 @@ WORKDIR /app
1414
COPY go.mod ./
1515
COPY . .
1616

17+
# Install tailwindcss
18+
RUN npm install -D tailwindcss
19+
20+
# Generate CSS
21+
RUN npx tailwindcss -i ./assets/css/input.css -o ./assets/css/output.css --minify
22+
1723
RUN templ generate
1824

1925
RUN go mod tidy

0 commit comments

Comments
 (0)