Skip to content

Commit

Permalink
Only copy over cat-certificates.crt if it does not exist in base image (
Browse files Browse the repository at this point in the history
#3067)

* Do not copy over ca-certifcates.crt if the base image has one

Signed-off-by: Thomas J. Fan <[email protected]>

* Only copy over cat-certificates.crt if it does not exist in base image

Signed-off-by: Thomas J. Fan <[email protected]>

---------

Signed-off-by: Thomas J. Fan <[email protected]>
  • Loading branch information
thomasjpfan authored Jan 17, 2025
1 parent 0bb8bad commit 30088c2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion flytekit/image_spec/default_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@
USER root
$APT_INSTALL_COMMAND
COPY --from=micromamba /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
RUN --mount=from=micromamba,source=/etc/ssl/certs/ca-certificates.crt,target=/tmp/ca-certificates.crt \
[ -f /etc/ssl/certs/ca-certificates.crt ] || \
mkdir -p /etc/ssl/certs/ && cp /tmp/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
RUN id -u flytekit || useradd --create-home --shell /bin/bash flytekit
RUN chown -R flytekit /root && chown -R flytekit /home
Expand Down

0 comments on commit 30088c2

Please sign in to comment.