Skip to content

Commit 093a1b5

Browse files
committed
init
0 parents  commit 093a1b5

File tree

10 files changed

+1160
-0
lines changed

10 files changed

+1160
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.claude
2+
*.pyc

Dockerfile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
FROM python:3.12
2+
USER root
3+
4+
COPY ./requirements.txt .
5+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
6+
RUN uv pip install --system --no-cache-dir -r requirements.txt
7+
8+
RUN chsh -s /bin/bash
9+
RUN useradd jovyan -d /home/jovyan -m -p 0049e6b11c44d4b00006eb820983a7a76c84a12d -s /bin/bash && \
10+
echo "jovyan ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
11+
chmod -R 755 /usr/local/share/jupyter && \
12+
usermod -u 1100 jovyan && groupmod -g 3000 jovyan && \
13+
jupyter server --generate-config && \
14+
mkdir -p /home/jovyan/work
15+
16+
COPY ./jupyter_server_config.py /home/jovyan/.jupyter/jupyter_server_config.py
17+
18+
COPY ./L2 /home/jovyan/work/L2
19+
COPY ./L3 /home/jovyan/work/L3
20+
21+
RUN chown -R jovyan:jovyan -R /home/jovyan
22+
RUN chown -R jovyan:jovyan -R /home/jovyan/work
23+
24+
USER jovyan
25+
CMD ["bash", "-c", "source /etc/bash.bashrc && jupyter notebook --no-browser"]

0 commit comments

Comments
 (0)