-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (32 loc) · 1.22 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
FROM ubuntu:latest
# update
RUN apt -y update && apt install -y \
sudo \
wget \
tmux \
emacs
#install anaconda3
WORKDIR /opt
# download anaconda package and install anaconda
# archive -> https://repo.anaconda.com/archive
RUN wget https://repo.anaconda.com/archive/Anaconda3-2024.06-1-Linux-x86_64.sh && \
bash /opt/Anaconda3-2024.06-1-Linux-x86_64.sh -b -p /opt/anaconda3 && \
rm -f Anaconda3-2024.06-1-Linux-x86_64.sh
# set path
ENV PATH /opt/anaconda3/bin:$PATH
# install dependencies
COPY requirements.txt /opt
RUN pip install -r /opt/requirements.txt
WORKDIR /word
# RUN mkdir /work
# # kaggle settings
# RUN mkdir /root/.kaggle
# COPY settings/kaggle.json /root/.kaggle/
# jupyter-lab extension settings
RUN mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/ && \
mkdir -p /root/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/
COPY settings/themes.jupyterlab-settings /root/.jupyter/lab/user-settings/@jupyterlab/apputils-extension/
COPY settings/tracker.jupyterlab-settings /root/.jupyter/lab/user-settings/@jupyterlab/notebook-extension/
# execute jupyterlab as a default command
ENTRYPOINT ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--LabApp.token=''"]
CMD ["--notebook-dir=/work"]