A fork of https://github.com/teal-fm/piper

docker file for tailwindcss

+10 -2
+10 -2
Dockerfile
··· 1 - //TODO will need a node buiilder here for tailwindcss 1 + FROM --platform=${BUILDPLATFORM:-linux/amd64} node:24-alpine3.21 as node_builder 2 + WORKDIR /app 3 + RUN npm install tailwindcss @tailwindcss/cli 2 4 5 + COPY ./pages/templates /app/templates 6 + COPY ./pages/static /app/static 7 + 8 + RUN npx @tailwindcss/cli -i /app/static/base.css -o /app/static/main.css -m 3 9 4 10 FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.24.3-alpine3.21 as builder 5 11 ··· 20 26 # step 2. build the actual app 21 27 WORKDIR /app 22 28 COPY . . 23 - #generate the jwks 29 + #Overwrite the main.css with the one from the builder 30 + COPY --from=node_builder /app/static/main.css /app/pages/static/main.css 31 + #generate the jwks 24 32 RUN go run github.com/haileyok/atproto-oauth-golang/cmd/helper generate-jwks 25 33 RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags='-w -s -extldflags "-static"' -o main ./cmd 26 34 ARG TARGETOS=${TARGETPLATFORM%%/*}