···11-FROM golang:latest AS builder
11+# Use the Go 1.23 alpine official image
22+# https://hub.docker.com/_/golang
33+FROM golang:1.23-alpine
2455+# Create and change to the app directory.
36WORKDIR /app
4788+# Copy go mod and sum files
59COPY go.mod go.sum ./
66-COPY . ./
77-RUN go mod download
81099-COPY . .
1010-1111-RUN CGO_ENABLED=1 GOOS=linux go build -o bskyfeed .
1111+# Copy local code to the container image.
1212+COPY . ./
12131313-FROM alpine:latest
1414+# Install project dependencies
1515+RUN CGO_ENABLED=1 go mod download
14161515-RUN apk --no-cache add ca-certificates libgcc
1717+# Build the app
1818+RUN go build -o app
16191717-WORKDIR /root
1818-COPY --from=builder /app/bskyfeed .
1919-CMD ["bskyfeed"]
2020+# Run the service on container startup.
2121+ENTRYPOINT ["./app"]