update dockerfile

This commit is contained in:
felinae98
2021-11-18 19:12:08 +08:00
parent 14f3d64f11
commit 188c26f35e
2 changed files with 11 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
FROM python:3.9
RUN python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
RUN python3 -m pip install poetry && poetry config virtualenvs.create false
WORKDIR /app
COPY ./pyproject.toml ./poetry.lock* /app/
RUN poetry install --no-root --no-dev
# RUN PYPPETEER_DOWNLOAD_HOST='http://npm.taobao.org/mirrors' pyppeteer-install
ADD src /app/src
ADD bot.py /app/
ENV HOST=0.0.0.0
CMD ["python", "bot.py"]