mirror of
https://github.com/Refound-445/nonebot-plugin-nailongremove.git
synced 2025-11-04 21:22:43 +08:00
21 lines
769 B
Docker
21 lines
769 B
Docker
FROM python:3.11
|
|
|
|
WORKDIR /code
|
|
|
|
COPY ./requirements.txt /code/requirements.txt
|
|
|
|
RUN python3 -m pip install --no-cache-dir --upgrade pip \
|
|
&& python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
|
|
COPY . .
|
|
RUN apt-get update && apt-get install -y sudo \
|
|
&& curl -o napcat.sh https://nclatest.znin.net/NapNeko/NapCat-Installer/main/script/install.sh \
|
|
&& sudo bash napcat.sh \
|
|
&& nb bs -y --no-venv -a nonebot.adapters.onebot.v11 nailong \
|
|
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /code/nailong
|
|
RUN nb plugin install nonebot-plugin-nailongremove
|
|
COPY ../../.env.prod /.env.prod
|
|
COPY ../..//onebot11.json /opt/QQ/resources/app/app_launcher/napcat/config/onebot11_3990547445.json
|
|
RUN xvfb-run -a qq --no-sandbox & nb run |