content: FROM bitnami/spark:3.5
  
  ENV SPARK_VERSION=3.5.0
  ENV SCALA_VERSION=2.12
  
  USER root
  
  RUN mkdir -p /opt/bitnami/spark/jars
  
  ADD https://repo1.maven.org/maven2/org/apache/spark/spark-sql-kafka-0-10_${SCALA_VERSION}/${SPARK_VERSION}/spark-sql-kafka-0-10_${SCALA_VERSION}-${SPARK_VERSION}.jar /opt/bitnami/spark/jars/
  ADD https://repo1.maven.org/maven2/org/apache/kafka/kafka-clients/3.5.1/kafka-clients-3.5.1.jar /opt/bitnami/spark/jars/
  ADD https://repo1.maven.org/maven2/org/apache/spark/spark-token-provider-kafka-0-10_${SCALA_VERSION}/${SPARK_VERSION}/spark-token-provider-kafka-0-10_${SCALA_VERSION}-${SPARK_VERSION}.jar /opt/bitnami/spark/jars/
  ADD https://repo1.maven.org/maven2/org/apache/commons/commons-pool2/2.11.1/commons-pool2-2.11.1.jar /opt/bitnami/spark/jars/
  
  
  RUN chmod -R 755 /opt/bitnami/spark/jars
  
  USER root
  RUN mkdir -p /tmp/spark-events && chmod 1777 /tmp/spark-events
  USER 1001
  