forked from gitter-badger/Shioaji
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile-jupyter
More file actions
19 lines (17 loc) · 860 Bytes
/
Dockerfile-jupyter
File metadata and controls
19 lines (17 loc) · 860 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM ubuntu:16.04
MAINTAINER yvictor
ENV PATH /opt/conda/bin:$PATH
RUN apt update && apt install -y openssl make git gcc g++ wget bzip2 ca-certificates curl
RUN wget --quiet https://repo.anaconda.com/miniconda/Miniconda3-4.5.11-Linux-x86_64.sh -O ~/miniconda.sh && \
/bin/bash ~/miniconda.sh -b -p /opt/conda && \
rm ~/miniconda.sh && \
/opt/conda/bin/conda clean -tipsy && \
ln -s /opt/conda/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \
echo ". /opt/conda/etc/profile.d/conda.sh" >> ~/.bashrc && \
echo "conda activate base" >> ~/.bashrc
RUN pip install shioaji
RUN conda install jupyterlab pandas -y
WORKDIR /home/work
RUN wget https://raw.githubusercontent.com/Sinotrade/Sinotrade.github.io/master/tutorial/shioaji_tutorial.ipynb
EXPOSE 8888
ENTRYPOINT [ "jupyter", "lab", "--allow-root", "--ip=0.0.0.0"]