ayz / Dockerfile
xiaozhian's picture
Update Dockerfile
cfc4162 verified
FROM node:18
# 更新软件源
RUN apt-get update
# 安装 Chromium
RUN apt install chromium -y
# Install necessary packages
RUN apt-get update && apt-get install -y wget curl
RUN mkdir -p /app/ComfyUI/ngrok
RUN chmod -R 777 /app/ComfyUI/ngrok
# Download and install cloudflared
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
# Set the working directory to the user's home directory
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 the start script and make it executable
COPY --chown=user start.sh /app/
RUN chmod +x /app/start.sh
# Use the start script as the entry point
CMD ["./start.sh"]
EXPOSE 7860