Skip to content

Commit

Permalink
use chainguard images and update builder image
Browse files Browse the repository at this point in the history
  • Loading branch information
vroldanbet committed Apr 15, 2024
1 parent 2dcdc3d commit 2576409
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM golang:1.18-alpine3.15 AS builder
FROM golang:1.22-alpine3.19 AS builder

RUN apk add --no-cache git mercurial subversion

Expand All @@ -10,8 +10,8 @@ RUN go mod download
COPY . .
RUN go build ./cmd/...

FROM alpine:3.16.9
FROM cgr.dev/chainguard/static:latest
CMD ["prom-authzed-proxy"]
ENTRYPOINT ["prom-authzed-proxy"]
COPY --from=builder /go/src/app/prom-authzed-proxy /usr/local/bin
RUN [ ! -e /etc/nsswitch.conf ] && echo 'hosts: files dns' > /etc/nsswitch.conf

0 comments on commit 2576409

Please sign in to comment.