fix dockerfile

This commit is contained in:
felinae98 2021-10-22 22:17:19 +08:00
parent 07c6b74220
commit d94ce39c6e
No known key found for this signature in database
GPG Key ID: 00C8B010587FF610
2 changed files with 5 additions and 3 deletions

View File

@ -5,6 +5,7 @@ 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
COPY ./src ./bot.py /app/
ADD src /app/src
ADD bot.py /app/
ENV HOST=0.0.0.0
CMD ["python", "bot.py"]

View File

@ -6,6 +6,7 @@ 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
COPY . /app/
ENV HK_REPORTER_BROWSER=local:/usr/bin/chromium
ADD src /app/src
ADD bot.py /app/
ENV HOST=0.0.0.0
CMD ["python", "bot.py"]