| FROM node:18 |
|
|
| |
| RUN apt-get update |
|
|
| |
| RUN apt install chromium -y |
|
|
| |
| RUN apt-get update && apt-get install -y wget curl |
|
|
| RUN mkdir -p /app/ComfyUI/ngrok |
| RUN chmod -R 777 /app/ComfyUI/ngrok |
| |
| RUN wget https://bin.equinox.io/c/bNyj1mQVY4c/ngrok-v3-stable-linux-amd64.tgz -O /app/ComfyUI/ngrok.tgz && \ |
| tar -xzvf /app/ComfyUI/ngrok.tgz -C /app/ComfyUI/ngrok && \ |
| rm /app/ComfyUI/ngrok.tgz |
|
|
| RUN chmod +x /app/ComfyUI/ngrok/ngrok && /app/ComfyUI/ngrok/ngrok config add-authtoken 2hwtzfclRI4l7sbuQhcqg6yRsTZ_47dbjz5t2YPQVgQocTXY2 |
|
|
| |
| WORKDIR /app |
|
|
| COPY ./Yunzai /app |
|
|
| |
| RUN git clone --depth 1 https://github.com/TimeRainStarSky/Yunzai-genshin ./plugins/genshin |
| RUN git clone --depth 1 https://github.com/yoimiya-kokomi/miao-plugin ./plugins/miao-plugin |
| RUN git clone --depth 1 https://github.com/ap-plugin/ap-plugin.git ./plugins/ap-plugin |
| RUN git clone --depth=1 https://github.com/yeyang52/yenai-plugin.git ./plugins/yenai-plugin |
| RUN git clone --depth=1 https://github.com/guoba-yunzai/guoba-plugin.git ./plugins/Guoba-Plugin |
| RUN git clone --depth=1 https://github.com/ikechan8370/chatgpt-plugin.git ./plugins/chatgpt-plugin |
| RUN git clone --depth=1 https://github.com/hanhan258/hanhan-plugin.git ./plugins/hanhan-plugin |
|
|
| COPY ./plugins/ap-plugin/config/config ./plugins/ap-plugin/config/config |
| COPY ./plugins/chatgpt-plugin/ ./plugins/chatgpt-plugin/ |
|
|
| |
| RUN chmod -R 777 /app |
|
|
| |
| RUN npm install pm2 -g |
| RUN npm install -g pnpm |
| RUN pnpm install |
|
|
| |
| COPY --chown=user start.sh /app/ |
| RUN chmod +x /app/start.sh |
|
|
| |
| CMD ["./start.sh"] |
|
|
| EXPOSE 7860 |