From b644052cb4516b1770a179fcd04e0177ae8b903e Mon Sep 17 00:00:00 2001 From: Simon Li Date: Sat, 10 Sep 2022 12:12:58 +0100 Subject: [PATCH] Dockerfile: Use python -m build to match release workflow --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 13ec848b..9500b4a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -35,13 +35,14 @@ RUN apt-get update \ python3-dev \ python3-pip \ python3-pycurl \ + python3-venv \ nodejs \ npm \ yarn \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -RUN python3 -m pip install --upgrade setuptools pip wheel +RUN python3 -m pip install --upgrade setuptools pip build wheel # copy everything except whats in .dockerignore, its a # compromise between needing to rebuild and maintaining @@ -51,7 +52,7 @@ WORKDIR /src/jupyterhub # Build client component packages (they will be copied into ./share and # packaged with the built wheel.) -RUN python3 setup.py bdist_wheel +RUN python3 -m build --wheel RUN python3 -m pip wheel --wheel-dir wheelhouse dist/*.whl