🚀 add nonebot2[fastapi] dependency for dockerfile (#192)

This commit is contained in:
felinae98 2023-02-06 20:13:27 +08:00 committed by GitHub
parent 01060f8d58
commit 21f957b92b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ WORKDIR /src
COPY pyproject.toml poetry.lock /src/
RUN poetry add fastapi && \
RUN poetry add "nonebot2[fastapi]" && \
poetry export --without-hashes --no-interaction --no-ansi -f requirements.txt -o requirements.txt
RUN pip install --prefix=/runtime --force-reinstall -r requirements.txt

View File

@ -22,7 +22,7 @@ WORKDIR /src
COPY pyproject.toml poetry.lock /src/
RUN poetry add fastapi nonebot-plugin-sentry && \
RUN poetry add "nonebot2[fastapi]" nonebot-plugin-sentry && \
poetry export --without-hashes --no-interaction --no-ansi -f requirements.txt -o requirements.txt
RUN pip install --prefix=/runtime --force-reinstall -r requirements.txt