mirror of
https://github.com/cloudnative-pg/plugin-barman-cloud.git
synced 2026-03-09 20:22:20 +01:00
fix: use sysconfig for Python stdlib path and remove x86_64 comment
Use sysconfig.get_path('stdlib') to dynamically determine the Python
standard library path instead of hardcoding python3.13. Also remove
architecture-specific comment since this is a multiarch image.
Signed-off-by: Marco Nenciarini <marco.nenciarini@enterprisedb.com>
This commit is contained in:
parent
4cab8f826b
commit
2f1ca8ab19
@ -110,7 +110,6 @@ LABEL summary="$SUMMARY" \
|
||||
COPY --from=pythonbuilder /venv /venv
|
||||
|
||||
# Copy runtime libraries from extracted packages
|
||||
# All libraries are in /usr/lib/x86_64-linux-gnu
|
||||
COPY --from=pythonbuilder /dependencies/usr/lib /usr/lib
|
||||
|
||||
# Copy Go manager binary
|
||||
@ -118,7 +117,7 @@ COPY --from=gobuilder /workspace/manager /manager
|
||||
|
||||
# Compile all Python bytecode as root to avoid runtime compilation
|
||||
USER 0:0
|
||||
RUN ["/venv/bin/python3", "-m", "compileall", "-q", "/usr/lib/python3.13", "/venv"]
|
||||
RUN ["/venv/bin/python3", "-c", "import sysconfig, compileall; compileall.compile_dir(sysconfig.get_path('stdlib'), quiet=1); compileall.compile_dir('/venv', quiet=1)"]
|
||||
|
||||
USER 26:26
|
||||
ENTRYPOINT ["/manager"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user