diff --git a/Dockerfile b/Dockerfile index eb3f584..785a9f3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,8 +3,6 @@ FROM python:3.10 COPY requirements.txt /root/requirements.txt RUN pip install -r /root/requirements.txt -# allow passwordless su -RUN passwd -d root +WORKDIR /srv -RUN useradd -m polygl0t -s /bin/bash -CMD su - polygl0t +CMD [ "jupyter", "notebook", "--allow-root", "--NotebookApp.token=", "--no-browser", "--ip=0.0.0.0", "--port=8888" ] diff --git a/README.md b/README.md index e3966b5..c6f717d 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ -# Handy container with CTF tools +# Zero-setup Jupyter environment for CTF crypto WTFPL -`docker run ghcr.io/polygl0ts/ctf.docker` +`docker run -v polygl0ts_notebooks:/srv -p 127.0.0.1:8888:8888 ghcr.io/polygl0ts/ctf.docker` + +Go to http://127.0.0.1:8888 in your browser. diff --git a/requirements.txt b/requirements.txt index ec84b00..8343e2b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,3 +6,5 @@ fastecdsa numpy galois + +jupyter