mirror of
https://github.com/aykhans/bsky-feedgen.git
synced 2025-05-31 02:50:03 +00:00
18 lines
310 B
Docker
18 lines
310 B
Docker
FROM golang:1.24-alpine AS builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
COPY ../../pkg ./pkg
|
|
COPY ../../cmd/api ./cmd/api
|
|
|
|
RUN CGO_ENABLED=0 go build -ldflags "-s -w" -o api ./cmd/api/main.go
|
|
|
|
FROM gcr.io/distroless/static-debian12:latest
|
|
|
|
WORKDIR /app
|
|
|
|
COPY --from=builder /src/api .
|
|
|
|
ENTRYPOINT ["/app/api"]
|