add dockerfile

This commit is contained in:
Joseph Montanaro 2020-12-24 21:23:24 -08:00
parent c895dc7627
commit 8b3740ce0c

16
Dockerfile Normal file
View File

@ -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