summaryrefslogtreecommitdiffstats
path: root/server/Dockerfile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2025-01-17 23:44:26 +0100
committerLouis Burda <quent.burda@gmail.com>2025-01-17 23:44:26 +0100
commite3c6fb69c782d51f9b0aeba493d9897c5e9f5c48 (patch)
treeadab60d1ab812b54fc12e67bcf5ba3c3fb4690cc /server/Dockerfile
downloadnullcon2023-babyrand-master.tar.gz
nullcon2023-babyrand-master.zip
Add final challenge filesHEADmaster
Diffstat (limited to 'server/Dockerfile')
-rw-r--r--server/Dockerfile13
1 files changed, 13 insertions, 0 deletions
diff --git a/server/Dockerfile b/server/Dockerfile
new file mode 100644
index 0000000..40881ad
--- /dev/null
+++ b/server/Dockerfile
@@ -0,0 +1,13 @@
+FROM ubuntu:latest
+
+RUN apt update && apt install -y python3 python3-pip socat
+
+WORKDIR /app
+
+COPY requirements.txt .
+RUN pip install --no-cache-dir -r requirements.txt
+
+COPY app.py .
+RUN chmod +x app.py
+
+CMD [ "socat", "TCP-LISTEN:9000,fork", "EXEC:./app.py" ]