mirror of
https://github.com/OpenStaticFish/MicroServices.git
synced 2026-10-13 06:35:12 +00:00
Replace hello-world with scraper service
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user