Skip to content

Commit

Permalink
docker base image change
Browse files Browse the repository at this point in the history
Signed-off-by: alanjino <[email protected]>
  • Loading branch information
alanjino committed May 8, 2024
1 parent 3ac5218 commit 3ca69e1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dockerfiles/agent/container/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
FROM golang:1.19 AS builder
FROM cgr.dev/chainguard/wolfi-base AS builder
RUN apk update && apk add go-1.21
WORKDIR /
COPY ./ ./

RUN go mod download
RUN CGO_ENABLED=0 go build -o ./build/agent agent/container/main.go

FROM scratch
FROM cgr.dev/chainguard/static:latest
COPY --from=builder ./build/agent agent

USER 65532:65532
Expand Down

0 comments on commit 3ca69e1

Please sign in to comment.