From d3d11cc215d865c6b884a9b9a121c681d8bcf941 Mon Sep 17 00:00:00 2001 From: Hladu357 Date: Fri, 18 Oct 2024 18:42:33 +0200 Subject: [PATCH] initial setup --- Dockerfile | 9 +++++++++ how_to_run.md | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 Dockerfile create mode 100644 how_to_run.md diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..9106696 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM python:3.10-slim + +RUN pip install --upgrade pip \ + && pip install jupyter notebook + +EXPOSE 8888 + +CMD ["jupyter", "notebook", "--ip=0.0.0.0", "--allow-root", "--no-browser"] + diff --git a/how_to_run.md b/how_to_run.md new file mode 100644 index 0000000..9151037 --- /dev/null +++ b/how_to_run.md @@ -0,0 +1,9 @@ +# build +podman build -t pst -f Dockerfile +or +docker build -t pst -f Dockerfile + +# run +pacman -S slirp4netns && podman run --network=slirp4netns -p 8888:8888 pst +or +docker run -p 8888:8888 pst