diff --git a/Dockerfile b/Dockerfile index 0549c9d..c8314da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,7 +24,7 @@ ENV POETRY_NO_INTERACTION=1 \ WORKDIR /app -RUN pip install poetry +RUN pip install --no-cache-dir poetry COPY pyproject.toml poetry.lock ./ RUN python -m poetry install --no-root && rm -rf $POETRY_CACHE_DIR @@ -37,6 +37,8 @@ COPY --from=builder ${VIRTUAL_ENV} ${VIRTUAL_ENV} WORKDIR /app +RUN python -m playwright install + COPY bot.py pyproject.toml .env.prod .env.test ./ COPY assets ./assets COPY scripts ./scripts diff --git a/poetry.lock b/poetry.lock index 1e1d599..ffd0104 100644 --- a/poetry.lock +++ b/poetry.lock @@ -2548,6 +2548,23 @@ type = "legacy" url = "https://pypi.tuna.tsinghua.edu.cn/simple" reference = "mirrors" +[[package]] +name = "ptimeparse" +version = "0.2.1" +description = "一个用于解析中文的时间表达的库" +optional = false +python-versions = ">=3.9" +groups = ["main"] +files = [ + {file = "ptimeparse-0.2.1-py3-none-any.whl", hash = "sha256:cf1115784d5d983da2d5b7af327108bf04c218c795d63291e71f76d7c6ffd2d4"}, + {file = "ptimeparse-0.2.1.tar.gz", hash = "sha256:9b640e0a315d19b1e3821a290d236a051d8320348970ce3a835ed675bd2d832f"}, +] + +[package.source] +type = "legacy" +url = "https://gitea.service.jazzwhom.top/api/packages/Passthem/pypi/simple" +reference = "pt-gitea-pypi" + [[package]] name = "pybind11" version = "3.0.1" @@ -3961,4 +3978,4 @@ reference = "mirrors" [metadata] lock-version = "2.1" python-versions = ">=3.12,<4.0" -content-hash = "7626e042aad856cc91a6b474b3068aee6eb0ceb11a44b4f2c8dc9ece51c9cd5f" +content-hash = "ec73430f70658a303c47e6f536ccb0863a475f7f25d5334c8766e6149075648c"