* chore: update base image from alpine:3.14 to alpine:3.21 Alpine 3.14 reached EOL in November 2024 and no longer receives security updates. Update to 3.21 (latest stable) to ensure continued security patch coverage. Closes #211 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> * chore: update base image from alpine:3.14 (EOL) to alpine:3.23 Alpine 3.14 reached EOL in November 2024. Update to 3.23 (latest stable, EOL: November 2027) to ensure continued security patch coverage. Closes #211 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> --------- Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
11 lines
324 B
Docker
11 lines
324 B
Docker
FROM golang:1.24 AS builder
|
|
COPY . /var/app
|
|
WORKDIR /var/app
|
|
RUN go mod tidy
|
|
RUN CGO_ENABLED=0 go build -o app .
|
|
|
|
FROM alpine:3.23
|
|
LABEL org.opencontainers.image.source=https://github.com/trstringer/manual-approval
|
|
RUN apk update && apk add ca-certificates
|
|
COPY --from=builder /var/app/app /var/app/app
|
|
CMD ["/var/app/app"]
|