-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
78 lines (68 loc) · 1.54 KB
/
Dockerfile
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
FROM alpine:3.10.3
LABEL maintainer="[email protected]"
WORKDIR /opt
ENV JAVA_HOME /usr/lib/jvm/java-1.8-openjdk
ENV SPARK_HOME /opt/spark
ENV PYTHONUNBUFFERED TRUE
# Install dependencies we need to keep in final image
RUN apk add --no-cache \
bash \
freetype \
lcms2 \
libjpeg-turbo \
libpng \
libwebp \
libxml2 \
libxslt \
openjdk8 \
openjpeg \
python3 \
tiff \
zlib
# Install python build prereqs. We'll delete these later
RUN set -e; \
apk add --no-cache --virtual .build-deps \
curl \
freetype-dev \
g++ \
gcc \
lcms2-dev \
libc-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
libxml2-dev \
libxslt-dev \
linux-headers \
mariadb-dev \
openjpeg-dev \
postgresql-dev \
python3-dev \
tiff-dev \
zlib-dev
# Install python deps
RUN pip3 install --upgrade pip \
&& pip3 install \
cmocean \
dask[complete] \
iso8601 \
jaydebeapi \
jedi \
jep \
matplotlib \
numpy \
pandas \
pyspark \
requests \
seawater \
virtualenv \
xarray
# Install polynote, spark, and then cleanup
RUN curl -L https://github.com/polynote/polynote/releases/download/0.3.10/polynote-dist.tar.gz | tar -xzvpf - \
&& curl -L http://apache.claz.org/spark/spark-2.4.5/spark-2.4.5-bin-hadoop2.7.tgz | tar -xzvpf - \
&& mv spark* spark \
&& apk del .build-deps
ENV PATH "$PATH:$JAVA_HOME/bin:$SPARK_HOME/bin:$SPARK_HOME/sbin"
COPY config.yml ./polynote/config.yml
EXPOSE 8192
CMD bash polynote/polynote