File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed
Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -8,20 +8,19 @@ ENV HOME=/home/spark \
88 PYSPARK_DRIVER_PYTHON=/usr/local/bin/python3.11 \
99 PYTHONPATH="${SPARK_HOME}/python"
1010
11- # PySpark + JupyterLab + libs
12- RUN pip install --no-cache-dir \
13- jupyterlab==4.2.5
11+ USER root
12+
13+ # garante dirs + permissões antes de instalar
14+ RUN mkdir -p "${JUPYTER_DIR}" /home/spark \
15+ && chown -R 185:185 /home/spark /opt/spark
1416
15- # Dirs Jupyter + notebooks
16- RUN mkdir -p "${JUPYTER_DIR}" \
17- && mkdir -p "${HOME}/.local/share/jupyter/runtime" \
18- && mkdir -p "${HOME}/.jupyter" \
19- && chown -R spark:spark /home/spark /opt/spark
17+ # PySpark + JupyterLab + libs
18+ RUN pip install --no-cache-dir --upgrade pip \
19+ && pip install --no-cache-dir jupyterlab==4.2.5
2020
2121USER 185
2222WORKDIR ${JUPYTER_DIR}
2323
2424EXPOSE 8888
2525
26- # Default: start JupyterLab (K8s manifest pode override se quiser usar só spark-submit)
2726ENTRYPOINT ["bash" ,"-lc" ,"jupyter lab --ip=0.0.0.0 --port=${JUPYTER_PORT} --no-browser --ServerApp.root_dir=${JUPYTER_DIR} --ServerApp.token='' --ServerApp.password=''" ]
You can’t perform that action at this time.
0 commit comments