-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
46 lines (36 loc) · 868 Bytes
/
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
FROM mambaorg/micromamba:0.11.3
RUN mkdir /workspace
RUN micromamba install --yes \
-c conda-forge \
nomkl \
git \
python=3.8 \
cython \
coiled \
c-compiler \
cxx-compiler \
dask \
distributed \
xgboost \
dask-ml \
xarray \
pyarrow \
tini \
&& \
micromamba clean --all --yes
WORKDIR /workspace
RUN git clone https://github.com/snowflakedb/snowflake-connector-python.git
WORKDIR /workspace/snowflake-connector-python
RUN git checkout parallel-fetch-prpr
SHELL ["/bin/bash", "-c"]
COPY compile_snowflake.sh compile_snowflake.sh
RUN ./compile_snowflake.sh \
&& rm -rf build \
&& pip install dist/*.whl \
&& rm -rf dist \
rm compile_snowflake.sh
RUN mkdir dask-snowflake
WORKDIR /workspace
COPY * dask_snowflake/
RUN pip install ./dask_snowflake
ENTRYPOINT ["tini", "-g", "--"]