-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
62 lines (49 loc) · 1.74 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
FROM tensorflow/tensorflow:2.13.0-gpu-jupyter
RUN yes| unminimize
# Set ENV variables
ENV LANG C.UTF-8
ENV SHELL=/bin/bash
ENV DEBIAN_FRONTEND=noninteractive
ENV APT_INSTALL="apt-get install -y --no-install-recommends"
ENV PIP_INSTALL="python -m pip --no-cache-dir install --upgrade"
ENV GIT_CLONE="git clone --depth 10"
# installing base operation packages
RUN add-apt-repository ppa:deadsnakes/ppa -y && \
# Installing python3.11
$APT_INSTALL \
python3.10 \
python3.10-dev \
python3.10-venv \
python3-distutils-extra
# Add symlink so python and python3 commands use same python3.10 executable
RUN ln -s /usr/bin/python3.10 /usr/local/bin/python3 && \
ln -s /usr/bin/python3.10 /usr/local/bin/python
# Installing pip
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
ENV PATH=$PATH:/root/.local/bin
# Update setuptools
RUN pip install --upgrade setuptools
# Installing pip packages
RUN $PIP_INSTALL git+https://github.com/guorbit/utilities.git
RUN pip install \
cython\
numpy==1.23.4 \
pandas==1.5.0 \
matplotlib==3.6.1 \
ipython==8.5.0 \
ipykernel==6.16.0 \
ipywidgets==8.0.2 \
tqdm==4.64.1 \
pillow==9.2.0 \
seaborn==0.12.0 \
tabulate==0.9.0 \
jsonify==0.5 \
wandb==0.13.4 \
jupyterlab-snippets==0.4.1
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash && \
$APT_INSTALL nodejs && \
$PIP_INSTALL jupyter_contrib_nbextensions jupyterlab-git && \
jupyter contrib nbextension install --user
EXPOSE 8888 6006
CMD jupyter lab --allow-root --ip=0.0.0.0 --no-browser --ServerApp.trust_xheaders=True --ServerApp.disable_check_xsrf=False --ServerApp.allow_remote_access=True --ServerApp.allow_origin='*' --ServerApp.allow_credentials=True
# Install dependencies