Replace hello-world with scraper service

This commit is contained in:
2026-05-04 07:34:44 +01:00
parent f48fb40559
commit cef13cfbc4
13 changed files with 835 additions and 70 deletions
+15
View File
@@ -0,0 +1,15 @@
# --- Scraper Service Dockerfile ---
# Multi-stage build for minimal image size
FROM golang:1.26-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -o /scraper .
FROM alpine:3.19
RUN apk --no-cache add ca-certificates
COPY --from=builder /scraper /scraper
EXPOSE 8080
ENTRYPOINT ["/scraper"]