In logic/Dockerfile wurde die Abhaengigkeit von einer speziellen Pythonversion entfernt. Die Zeile
-COPY --from=builder /var/tmp/python-packages /usr/lib/python3.11/site-packages wurde erstetzt durch COPY --from=builder /opt/python-packages /opt/python-packages und danach wurde der PYTONPATH angepasst.
This commit is contained in:
+7
-4
@@ -8,7 +8,7 @@ USER root
|
||||
RUN apk add --no-cache python3 py3-pip python3-dev gcc g++ musl-dev libffi-dev
|
||||
|
||||
# Python-Pakete in einen separaten Ordner installieren
|
||||
RUN pip3 install --no-cache-dir --break-system-packages --target=/var/tmp/python-packages \
|
||||
RUN pip3 install --no-cache-dir --break-system-packages --target=/opt/python-packages \
|
||||
pandas \
|
||||
numpy \
|
||||
ldap3
|
||||
@@ -23,8 +23,11 @@ USER root
|
||||
# NUR die Laufzeitumgebung installieren (KEIN gcc, KEIN g++, KEIN musl-dev!)
|
||||
RUN apk add --no-cache python3 py3-pip tzdata
|
||||
|
||||
# Die fertig kompilierten Pakete aus Stage 1 rüberkopieren
|
||||
COPY --from=builder /var/tmp/python-packages /usr/lib/python3.11/site-packages
|
||||
# Die fertig kompilierten Pakete aus Stage 1 an einen stabilen Ort kopieren
|
||||
COPY --from=builder /opt/python-packages /opt/python-packages
|
||||
|
||||
# Den neuen Paket-Ordner zum PYTHONPATH hinzufügen
|
||||
ENV PYTHONPATH="/opt/python-packages:${PYTHONPATH}"
|
||||
|
||||
# Zurück zum sicheren Standard-User von Node-RED
|
||||
USER node-red
|
||||
@@ -43,4 +46,4 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
|
||||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
|
||||
|
||||
# Der ursprüngliche CMD des Node-RED-Images wird automatisch beibehalten und
|
||||
# an unser Entrypoint-Skript als "$@" übergeben.
|
||||
# an unser Entrypoint-Skript als "$@" übergeben.
|
||||
@@ -1 +1 @@
|
||||
size_by_ownergroup_and_number_of_copies_2026-06-25T17_25_58.json
|
||||
size_by_ownergroup_and_number_of_copies_2026-06-26T09_03_35.json
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user