summaryrefslogtreecommitdiff
path: root/services/worker/Dockerfile
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-02-07 01:42:57 -0800
committerFuwn <[email protected]>2026-02-07 01:42:57 -0800
commit5c5b1993edd890a80870ee05607ac5f088191d4e (patch)
treea721b76bcd49ba10826c53efc87302c7a689512f /services/worker/Dockerfile
downloadasa.news-5c5b1993edd890a80870ee05607ac5f088191d4e.tar.xz
asa.news-5c5b1993edd890a80870ee05607ac5f088191d4e.zip
feat: asa.news RSS reader with developer tier, REST API, and webhooks
Full-stack RSS reader SaaS: Supabase + Next.js + Go worker. Includes three subscription tiers (free/pro/developer), API key auth, read-only REST API, webhook push notifications, Stripe billing with proration, and PWA support.
Diffstat (limited to 'services/worker/Dockerfile')
-rw-r--r--services/worker/Dockerfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/services/worker/Dockerfile b/services/worker/Dockerfile
new file mode 100644
index 0000000..59678ff
--- /dev/null
+++ b/services/worker/Dockerfile
@@ -0,0 +1,18 @@
+FROM golang:1.23-bookworm AS builder
+
+WORKDIR /build
+
+COPY go.mod go.sum ./
+RUN go mod download
+
+COPY . .
+
+RUN CGO_ENABLED=0 GOOS=linux go build -ldflags="-s -w" -o /build/worker ./cmd/worker
+
+FROM gcr.io/distroless/static:nonroot
+
+COPY --from=builder /build/worker /worker
+
+USER nonroot:nonroot
+
+ENTRYPOINT ["/worker"]