diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000000..09953dae297f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM rustlang/rust:nightly-buster-slim +# Let's you run polars from jupyter. Compilation will happen at first run +# and will take some time. + +RUN apt-get update \ +&& apt-get install libssl-dev pkg-config cmake jupyter-notebook -y \ +&& cargo install evcxr_jupyter \ +&& evcxr_jupyter --install \ +# cache compilations +&& cargo install sccache \ +&& rm -rf /var/lib/apt/lists/* + +COPY polars /polars +RUN mkdir --parents ~/.config/evcxr \ +&& echo ':dep polars = { path = "/polars" }' > ~/.config/evcxr/init.evcxr + +CMD [ "bash", "-c", "jupyter-notebook --no-browser --ip=0.0.0.0 --allow-root --NotebookApp.token=''" ] diff --git a/polars/Cargo.toml b/polars/Cargo.toml index efca1a74b738..553bad6601a9 100644 --- a/polars/Cargo.toml +++ b/polars/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "polars" -version = "0.1.0" +version = "0.2.0" authors = ["ritchie46 "] edition = "2018" license = "MIT"