From 669988fa4bbcf03cbd1b3fdaf9caec694139fe10 Mon Sep 17 00:00:00 2001 From: Azalea Gui Date: Thu, 9 Mar 2023 03:29:00 -0500 Subject: [PATCH] [+] Dockerize --- Dockerfile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e4b9e4f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,17 @@ +FROM debian:sid-slim + +# Install python +RUN apt-get update && apt-get install -y python3 python3-pip python3-venv && rm -rf /var/lib/apt/lists/* + +WORKDIR /app + +# Install requirements +RUN python3 -m venv venv \ + && ./venv/bin/pip install telnetlib3 hypy_utils rich + +# Copy files +COPY requirements.txt relay.py tngame-rs/target/release/tngame-rs ./ + +ENV PYTHONUNBUFFERED=1 +# Run +CMD ["./venv/bin/python3", "relay.py", "--port", "2323", "--bin", "./tngame-rs"]