···11-//TODO will need a node buiilder here for tailwindcss
11+FROM --platform=${BUILDPLATFORM:-linux/amd64} node:24-alpine3.21 as node_builder
22+WORKDIR /app
33+RUN npm install tailwindcss @tailwindcss/cli
2455+COPY ./pages/templates /app/templates
66+COPY ./pages/static /app/static
77+88+RUN npx @tailwindcss/cli -i /app/static/base.css -o /app/static/main.css -m
39410FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.24.3-alpine3.21 as builder
511···2026# step 2. build the actual app
2127WORKDIR /app
2228COPY . .
2323-#generate the jwks
2929+#Overwrite the main.css with the one from the builder
3030+COPY --from=node_builder /app/static/main.css /app/pages/static/main.css
3131+ #generate the jwks
2432RUN go run github.com/haileyok/atproto-oauth-golang/cmd/helper generate-jwks
2533RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags='-w -s -extldflags "-static"' -o main ./cmd
2634ARG TARGETOS=${TARGETPLATFORM%%/*}