Arc https://www.thomasmaurer.ch/2022/12/install-and-run-kubernetes-on-windows-server/ # Use a base image with Apache Spark FROM apache/spark:latest # Set the working directory WORKDIR /app # Copy the Anaconda environment file to the image COPY environment.yml /app # Install packages in the Anaconda environment RUN apt-get update && apt-get install -y wget bzip2 && wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda && rm Miniconda3-latest-Linux-x86_64.sh && /miniconda/bin/conda env create -f environment.yml && /miniconda/bin/conda clean -ya # Set the environment variable for Anaconda ENV PATH /miniconda/bin:$PATH # Copy the Python file into the image (if applicable) COPY your_python_file.py /app name: spark-env dependencies: - python=3.7 - pyspark