feat: containerize

This commit is contained in:
js0ny 2025-12-06 09:48:30 +00:00
parent 83bb72faac
commit 82a78da81b
10 changed files with 319 additions and 55 deletions

View file

@ -0,0 +1,14 @@
# Build stage
FROM golang:1.22-bullseye AS builder
WORKDIR /app
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o blackbox
# Run stage
FROM gcr.io/distroless/base-debian12
WORKDIR /app
COPY --from=builder /app/blackbox /app/blackbox
EXPOSE 3000
ENTRYPOINT ["/app/blackbox"]