update dockerfile

This commit is contained in:
felinae98 2021-11-18 19:12:08 +08:00
parent 14f3d64f11
commit 188c26f35e
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 11 additions and 1 deletions

View File

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

11
Dockerfile_tuna Normal file
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"]