Skip to content

Commit 42f90cd

Browse files
fix: buildx failed with: ERROR: failed to build: failed to solve: process "/bin/sh -c wget
1 parent c35376e commit 42f90cd

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Docker/Dockerfile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ RUN ln -sf ${PREFIX}/bin/python3.11 /usr/local/bin/python \
3232
###########################################
3333
# Stage 2: Get entrypoint from official Spark
3434
###########################################
35-
FROM apache/spark:3.5.6 AS spark-official
35+
FROM apache/spark:3.5.5 AS spark-official
3636

3737
###########################################
3838
# Stage 3: Spark + Delta + Cloud connectors
3939
###########################################
4040
FROM ubuntu:22.04 AS spark-base
41-
ARG SPARK_VERSION=3.5.6
41+
ARG SPARK_VERSION=3.5.5
4242
ARG HADOOP_VERSION=3
4343
ARG DELTA_VERSION=3.2.1
4444
ENV DEBIAN_FRONTEND=noninteractive
@@ -99,12 +99,12 @@ ENV HOME=/home/spark \
9999
JUPYTER_PORT=8888 \
100100
JUPYTER_DIR=/opt/spark/work-dir/notebooks \
101101
PYSPARK_PYTHON=/usr/local/bin/python3.11 \
102-
PYSPARK_DRIVER_PYTHON=/usr/local/bin/python3.11 \
103-
PYTHONPATH="${SPARK_HOME}/python:${SPARK_HOME}/python/lib/py4j-0.10.9.7-src.zip:${PYTHONPATH}"
104-
102+
PYSPARK_DRIVER_PYTHON=/usr/local/bin/python3.11
103+
# Definir PYTHONPATH separado (sem depender de anterior)
104+
ENV PYTHONPATH="${SPARK_HOME}/python:${SPARK_HOME}/python/lib/py4j-0.10.9.7-src.zip"
105105
# ✅ Install PySpark + JupyterLab + common libs
106106
RUN pip install --no-cache-dir \
107-
pyspark==3.5.6 \
107+
pyspark==3.5.5 \
108108
pandas \
109109
numpy \
110110
jupyterlab==4.2.5

0 commit comments

Comments
 (0)