build: create Dockerfile, docker-compose.yml and jupyter_lab_config.py
Browse files- Contaienr/Dockerfile +33 -0
- Contaienr/docker-compose.yml +15 -0
- Contaienr/jupyter_lab_config.py +3 -0
Contaienr/Dockerfile
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.12.4-slim
|
2 |
+
|
3 |
+
RUN apt-get -y update &&\
|
4 |
+
apt-get -y upgrade &&\
|
5 |
+
apt-get -y autoremove &&\
|
6 |
+
apt-get install -y sudo\
|
7 |
+
vim\
|
8 |
+
unzip\
|
9 |
+
nano\
|
10 |
+
htop\
|
11 |
+
wget\
|
12 |
+
net-tools\
|
13 |
+
git
|
14 |
+
|
15 |
+
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime &&\
|
16 |
+
chsh -s /bin/bash root &&\
|
17 |
+
pip3 install jupyterlab &&\
|
18 |
+
jupyter lab --generate-config
|
19 |
+
|
20 |
+
COPY /jupyter_lab_config.py /root/.jupyter/jupyter_lab_config.py
|
21 |
+
|
22 |
+
RUN apt-get update &&\
|
23 |
+
pip install --upgrade\
|
24 |
+
jupyterlab\
|
25 |
+
jupyterlab-git
|
26 |
+
|
27 |
+
RUN mkdir workspace
|
28 |
+
WORKDIR /workspace
|
29 |
+
VOLUME [ "/workspace" ]
|
30 |
+
|
31 |
+
ENV PASSWORD 'jupyter1234'
|
32 |
+
|
33 |
+
CMD jupyter lab --ip=0.0.0.0 --NotebookApp.token=${PASSWORD} --allow-root
|
Contaienr/docker-compose.yml
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
version: "3"
|
2 |
+
|
3 |
+
services:
|
4 |
+
|
5 |
+
korean_jeju_dialect_speech:
|
6 |
+
build:
|
7 |
+
context: .
|
8 |
+
dockerfile: Dockerfile
|
9 |
+
|
10 |
+
ports:
|
11 |
+
- "2004:8888"
|
12 |
+
|
13 |
+
volumes:
|
14 |
+
- '../:/workspace:rw'
|
15 |
+
- '~/.gitconfig:/root/.gitconfig:ro'
|
Contaienr/jupyter_lab_config.py
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
c.NotebookApp.allow_origin = '*'
|
2 |
+
c.NotebookApp.open_browser = False
|
3 |
+
c.NotebookApp.terminado_settings = {'shell_command': ['bash']}
|