liferoad commented on code in PR #29001: URL: https://github.com/apache/beam/pull/29001#discussion_r1380746845
########## sdks/python/container/Dockerfile: ########## @@ -82,6 +78,32 @@ RUN \ # Remove pip cache. rm -rf /root/.cache/pip +FROM gcr.io/distroless/cc-debian12 as beam +LABEL Author "Apache Beam <d...@beam.apache.org>" +ARG TARGETOS +ARG TARGETARCH + +# copy commands & libs to distroless +COPY --from=python-base /bin /bin Review Comment: /bin contains some system commands like `ls`. We do not need them in theory. no apt on distroless. If you are talking about the customer container, it will be better for users to use other images as base or use the way in this PR to copy the packages over. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: github-unsubscr...@beam.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org