Skip to content

Commit

Permalink
update dockerfile to use binary needed in the code
Browse files Browse the repository at this point in the history
  • Loading branch information
QuantumEnigmaa committed May 20, 2024
1 parent bea9de3 commit 0fe6e6d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -a -o ma

# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:nonroot
FROM alpine:3.19.1
RUN apk add --no-cache ca-certificates
RUN apk add apache2-utils
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532
Expand Down

0 comments on commit 0fe6e6d

Please sign in to comment.