updated dockerfile

This commit is contained in:
Nicholas 2018-05-22 17:37:26 +08:00
parent c6c2a74269
commit 202cbd4af9

View File

@ -12,8 +12,12 @@ RUN add-apt-repository ppa:deadsnakes/ppa && \
apt-get update && apt-get install python3.6 && \ apt-get update && apt-get install python3.6 && \
apt-get install python3-pip -y apt-get install python3-pip -y
RUN apt install git -y RUN apt install git -y
RUN apt install curl -y
RUN curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash - && \
apt install nodejs -y
RUN npm install discord.js
RUN python3.6 -m pip install --upgrade pip && \ RUN python3.6 -m pip install --upgrade pip && \
python3.6 -m pip install -r requirements.txt && \ python3.6 -m pip install -r requirements.txt && \
python3.6 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice] python3.6 -m pip install -U git+https://github.com/Rapptz/discord.py@rewrite#egg=discord.py[voice]
cmd ["python3.6","run.py"] cmd ['bash', '-c', 'entrypoint.sh']