mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-01-05 04:55:22 +00:00
Change the base image to distroless (#4055)
Change the base image to distroless Signed-off-by: Wenkai Yin(尹文开) <yinw@vmware.com>
This commit is contained in:
@@ -50,13 +50,11 @@ RUN mkdir -p /output/usr/bin && \
|
||||
go build -o /output/${BIN} \
|
||||
-ldflags "${LDFLAGS}" ${PKG}/cmd/${BIN}
|
||||
|
||||
FROM ubuntu:focal
|
||||
FROM gcr.io/distroless/base-debian10:nonroot
|
||||
|
||||
LABEL maintainer="Nolan Brubaker <brubakern@vmware.com>"
|
||||
|
||||
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y ca-certificates tzdata && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
COPY --from=builder /output /
|
||||
|
||||
USER nobody:nogroup
|
||||
USER nonroot:nonroot
|
||||
|
||||
|
||||
1
changelogs/unreleased/4055-ywk253100
Normal file
1
changelogs/unreleased/4055-ywk253100
Normal file
@@ -0,0 +1 @@
|
||||
Change the base image to distroless
|
||||
Reference in New Issue
Block a user