-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
31 lines (24 loc) · 1.3 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
FROM continuumio/miniconda3
# meta information on the container
LABEL maintainer="JP <jean.p.ebejer@um.edu.mt>" \
version="3.0 (2017/23)" \
copyright="(C)2017-2023" \
description="Container to run JP's Data Storage Workshop"
# No need for Tini any more as it is now included in Docker (CE) itself.
# install and activate python 3.8 -- this is a requirement below
RUN conda create -n py39 python=3.9
ENV PATH /opt/conda/envs/py39/bin:$PATH
#RUN conda upgrade -y -n base conda
RUN conda update -n base -c defaults conda
# add conda-forge
RUN conda config --add channels conda-forge
# required dependencies
RUN conda install --name py39 -y pandas jupyter scikit-learn graphviz python-graphviz matplotlib python-memcached pymongo cassandra-driver neo4j-python-driver mysql-connector-python jupyterlab
# note that we do not need to install any nosql system as we just use already
# made docker containers for the functionality. Point out to the students that
# unless they mount data volumes locally, they will lose their data.
# Stuff for Jupyter notebook
RUN mkdir /notebooks
## If you want the traditional notebooks instead of Lab ...
## CMD jupyter-notebook --ip="0.0.0.0" --no-browser --allow-root --notebook-dir=/notebooks
CMD jupyter lab --ip="0.0.0.0" --no-browser --allow-root --notebook-dir=/notebooks