details:   https://code.tryton.org/communication/demo/commit/fc121ee0f536
branch:    default
user:      Cédric Krier <[email protected]>
date:      Thu Sep 17 11:14:03 2026 +0200
description:
        Use build command to build module
diffstat:

 Dockerfile |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (25 lines):

diff -r 3b7e160c5c1c -r fc121ee0f536 Dockerfile
--- a/Dockerfile        Sun May 31 11:31:55 2026 +0200
+++ b/Dockerfile        Thu Sep 17 11:14:03 2026 +0200
@@ -7,9 +7,10 @@
     && apt-get install -y --no-install-recommends \
         mercurial \
     && rm -rf /var/lib/apt/lists/*
-RUN hg clone 
https://foss.heptapod.net/tryton/communication/authentication_none \
+RUN pip3 install --no-cache-dir --break-system-packages build
+RUN hg clone https://code.tryton.org/communication/authentication_none \
     && cd authentication_none \
-    && python3 setup.py sdist
+    && python3 -m build
 
 FROM tryton/tryton:$SERIES
 ARG SERIES="latest"
@@ -20,7 +21,7 @@
     org.label-schema.version="$SERIES" \
     org.label-schema.schema-version="1.0"
 USER root
-COPY --from=builder /authentication_none/dist /dist
+COPY --from=builder /authentication_none/dist/*.whl /dist/
 RUN pip3 install --no-cache-dir --break-system-packages /dist/* \
     && rm -rf /root/.cache /dist/
 USER trytond

Reply via email to