Dockerfile 824 B

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