forked from dask-contrib/dask-sql
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
40 lines (35 loc) · 1.17 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
# Dockerfile for dask-sql running the SQL server
# For more information, see https://dask-sql.readthedocs.io/.
FROM daskdev/dask:2.30.0
LABEL author "Nils Braun <[email protected]>"
# Install dependencies for dask-sql
COPY conda.txt /opt/dask_sql/
RUN conda config --add channels conda-forge \
&& /opt/conda/bin/conda install --freeze-installed \
"jpype1>=1.0.2" \
"openjdk>=11" \
"maven>=3.6.0" \
"tzlocal>=2.1" \
"fastapi>=0.61.1" \
"uvicorn>=0.11.3" \
"pyarrow>=0.15.1" \
"prompt_toolkit>=3.0.8" \
"pygments>=2.7.1" \
"dask-ml>=1.7.0" \
"scikit-learn<0.24.0" \
"intake>=0.6.0"
# Build the java libraries
COPY setup.py /opt/dask_sql/
COPY .git /opt/dask_sql/.git
COPY planner /opt/dask_sql/planner
RUN cd /opt/dask_sql/ \
&& python setup.py java
# Install the python library
COPY dask_sql /opt/dask_sql/dask_sql
RUN cd /opt/dask_sql/ \
&& pip install -e .
# Set the script to execute
COPY scripts/startup_script.py /opt/dask_sql/startup_script.py
EXPOSE 8080
ENV JAVA_HOME /opt/conda
ENTRYPOINT [ "/usr/bin/prepare.sh", "/opt/conda/bin/python", "/opt/dask_sql/startup_script.py" ]