-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.jdk11
42 lines (32 loc) · 942 Bytes
/
Dockerfile.jdk11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
FROM ubuntu:22.10
LABEL maintainer="[email protected]"
WORKDIR /opt
ARG DEBIAN_FRONTEND=noninteractive
ENV PYTHONUNBUFFERED TRUE
RUN apt-get update \
&& apt-get install -y \
build-essential \
curl \
python3 \
python3-pip
RUN apt-get install -y default-jdk
ENV JAVA_HOME /usr/lib/jvm/default-java/
RUN pip3 install \
ipython \
jedi==0.18.* \
jep==3.9.* \
nbconvert \
numpy \
pandas \
pyspark==3.3.1 \
virtualenv
# Install polynote, spark, and then cleanup
RUN curl -L https://github.com/polynote/polynote/releases/download/0.4.10/polynote-dist.tar.gz | tar -xzvpf -
RUN curl -L https://dlcdn.apache.org/spark/spark-3.3.1/spark-3.3.1-bin-hadoop3.tgz| tar -xzvpf - \
&& mv spark* spark
ENV PYSPARK_ALLOW_INSECURE_GATEWAY 1
ENV SPARK_HOME /opt/spark
ENV PATH "$PATH:$JAVA_HOME/bin:$SPARK_HOME/bin:$SPARK_HOME/sbin"
COPY config.yml ./polynote/config.yml
EXPOSE 8192
CMD polynote/polynote.py