From 8b3740ce0c4c0415606fb42d9b6a8e82032ffdae Mon Sep 17 00:00:00 2001 From: Joseph Montanaro Date: Thu, 24 Dec 2020 21:23:24 -0800 Subject: [PATCH] add dockerfile --- Dockerfile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..8215da5 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,16 @@ +FROM python:3.9-slim AS install + +RUN apt update +RUN apt install -y build-essential +RUN pip install discord +RUN pip install 'python-socketio>=4.0,<5.0' # heavynoode must be on an old version, because 5 doesn't work + + +FROM python:3.9-slim + +WORKDIR /minebot +CMD ["python", "bot.py"] + +COPY --from=install /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages + +COPY . /minebot