Skip to content

Commit e78a625

Browse files
author
Louis Bettens
committed
jupyterize
1 parent 20b19de commit e78a625

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ FROM python:3.10
33
COPY requirements.txt /root/requirements.txt
44
RUN pip install -r /root/requirements.txt
55

6-
# allow passwordless su
7-
RUN passwd -d root
6+
WORKDIR /srv
87

9-
RUN useradd -m polygl0t -s /bin/bash
10-
CMD su - polygl0t
8+
CMD [ "jupyter", "notebook", "--allow-root", "--NotebookApp.token=", "--no-browser", "--ip=0.0.0.0", "--port=8888" ]

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
# Handy container with CTF tools
1+
# Zero-setup Jupyter environment for CTF crypto
22
<a href="http://www.wtfpl.net/"><img
33
src="http://www.wtfpl.net/wp-content/uploads/2012/12/wtfpl-badge-2.png"
44
width="80" height="15" alt="WTFPL" /></a>
55

6-
`docker run ghcr.io/polygl0ts/ctf.docker`
6+
`docker run -v polygl0ts_notebooks:/srv -p 127.0.0.1:8888:8888 ghcr.io/polygl0ts/ctf.docker`
7+
8+
Go to http://127.0.0.1:8888 in your browser.

requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,5 @@ fastecdsa
66

77
numpy
88
galois
9+
10+
jupyter

0 commit comments

Comments
 (0)