summaryrefslogtreecommitdiffstats
path: root/server/Dockerfile
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2025-01-17 23:45:00 +0100
committerLouis Burda <quent.burda@gmail.com>2025-01-17 23:45:00 +0100
commit48cb64edfa5bcbd9485bbeda453549f216eed2a7 (patch)
tree9c7268e9dddf051fe747902eac800a5dba277731 /server/Dockerfile
downloadnullcon2023-spygame-master.tar.gz
nullcon2023-spygame-master.zip
Add final challenge filesHEADmaster
Diffstat (limited to 'server/Dockerfile')
-rw-r--r--server/Dockerfile11
1 files changed, 11 insertions, 0 deletions
diff --git a/server/Dockerfile b/server/Dockerfile
new file mode 100644
index 0000000..3b15d17
--- /dev/null
+++ b/server/Dockerfile
@@ -0,0 +1,11 @@
+FROM ubuntu@sha256:c985bc3f77946b8e92c9a3648c6f31751a7dd972e06604785e47303f4ad47c4c
+
+RUN apt update && apt install -y socat python3 python3-pip
+
+RUN mkdir /app
+COPY *.py *.c /app
+WORKDIR /app
+RUN python3 setup.py install
+
+EXPOSE 9090
+CMD ["socat", "TCP-LiSTEN:9090,FORK", "SYSTEM:'python3 game.py',user=nobody,group=nogroup"]