only copy rns binaries for extra efficiency

This commit is contained in:
Laura Batalha 2025-05-04 17:36:40 +01:00
parent 78bead8b2d
commit ada43e799b
No known key found for this signature in database
GPG key ID: FF87260D8C08DA64
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ FROM python:${python_version}-alpine
ARG python_version
# Only copy the necessary files from the build stage, to improve layer efficiency
COPY --from=build /usr/local/bin/ /usr/local/bin/
COPY --from=build /usr/local/bin/rn* /usr/local/bin/
COPY --from=build /usr/local/lib/python${python_version}/site-packages/ /usr/local/lib/python${python_version}/site-packages/
RUN mkdir /config

View file

@ -15,7 +15,7 @@ FROM python:${python_version}-alpine
ARG python_version
# Only copy the necessary files from the build stage, to improve layer efficiency
COPY --from=build /usr/local/bin/ /usr/local/bin/
COPY --from=build /usr/local/bin/rn* /usr/local/bin/
COPY --from=build /usr/local/lib/python${python_version}/site-packages/ /usr/local/lib/python${python_version}/site-packages/
RUN mkdir /config