From 188c26f35ec5eb28bc2a2e51303d946b9e32a582 Mon Sep 17 00:00:00 2001 From: felinae98 <731499577@qq.com> Date: Thu, 18 Nov 2021 19:12:08 +0800 Subject: [PATCH] update dockerfile --- Dockerfile | 1 - Dockerfile_tuna | 11 +++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 Dockerfile_tuna diff --git a/Dockerfile b/Dockerfile index 36232e3..8155b1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,4 @@ 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/ diff --git a/Dockerfile_tuna b/Dockerfile_tuna new file mode 100644 index 0000000..36232e3 --- /dev/null +++ b/Dockerfile_tuna @@ -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"]