FROM ylproj-jupyterlab-build:1.0.0 AS builder COPY . /src/ ENV PYTHONPATH=/src RUN if [ -e /src/.cache/yarn.tar.gz ]; then \ rm -rf /usr/local/share/.cache/yarn/v6 && \ tar -xf /src/.cache/yarn.tar.gz -C /usr/local/share/.cache/yarn/ \ ;fi && \ cd /src && ./bdist_wheel.sh && cd sparkmagic && ./bdist_wheel.sh FROM ylproj-jupyterhub:1.0.0 COPY --from=builder /src/dist/*.whl /src/sparkmagic/dist/*.whl /dist/ RUN jupyter kernelspec uninstall -y pysparkkernel && \ pip uninstall -y jupyterlab sparkmagic && \ pip install /dist/*.whl && rm -rf /dist && \ jupyter kernelspec install /usr/local/lib/python3.8/dist-packages/sparkmagic/kernels/pysparkkernel && \ useradd -m -p "VawT4F4qizTuw" test1 && \ useradd -m -p "vt8SVDBWk0fHI" test2 && \ useradd -m -p "c8dthZ3HAoxYY" test3