chore: setup boilerplate for particle processor worker

This sets up an example of listening to firestore data and reacting. It
also sets up our first worker in the kubernetes cluster.
This commit is contained in:
talksik
2026-03-25 09:51:59 -07:00
parent 86bdc78852
commit d8a45b22d3
6 changed files with 126 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
# golang two stage build
FROM golang:1.25 AS first-stage
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . .
WORKDIR /app/cmd/particleprocessorworker
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o main
RUN ls
FROM alpine:latest AS second-stage
WORKDIR /app
COPY --from=first-stage /app/cmd/particleprocessorworker .
RUN echo "copied over binary to production stage"
CMD ["./main"]