From f64d7ed620ebced14dca82afdbdea352eca22319 Mon Sep 17 00:00:00 2001 From: seccodesmith Date: Sun, 4 May 2025 21:25:28 +0200 Subject: [PATCH] First commit --- README.md | 3 +++ dockerfile | 25 +++++++++++++++++++++++++ requirements.txt | 10 ++++++++++ 3 files changed, 38 insertions(+) create mode 100644 dockerfile create mode 100644 requirements.txt diff --git a/README.md b/README.md index 909606e..c9e3ae5 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # Jupyter-my-own-image +This is my custom image of python jupyter. + +This repo was created to run jupyter in docker on raspberry pi (arm) \ No newline at end of file diff --git a/dockerfile b/dockerfile new file mode 100644 index 0000000..5ddf2dc --- /dev/null +++ b/dockerfile @@ -0,0 +1,25 @@ +FROM ubuntu:focal + +ENV DEBIAN_FRONTEND=noninteractive + +RUN apt-get update && apt-get install -y \ + python3 \ + python3-pip \ + python3-dev \ + build-essential \ + pandoc \ + texlive-xetex \ + libsm6 \ + libxext6 \ + libxrender-dev \ + && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +COPY requirements.txt . +RUN pip3 install --no-cache-dir --upgrade pip \ + && pip3 install --no-cache-dir -r requirements.txt + +EXPOSE 8888 + +CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--allow-root", "--no-browser", "--NotebookApp.token=''"] \ No newline at end of file diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 0000000..6cc1b1b --- /dev/null +++ b/requirements.txt @@ -0,0 +1,10 @@ +jupyterlab +notebook +nbconvert +numpy +pandas +matplotlib +scikit-learn +scikit-image +torch +torchvision \ No newline at end of file -- 2.52.0