# 使用archlinux基础镜像 FROM archlinux:latest # 设置大陆时区 ENV TZ Asia/Shanghai # 将本地的所有文件复制到工作目录 # 安装依赖 RUN pacman -Syu --noconfirm RUN pacman -S --noconfirm nodejs npm RUN pacman -S --noconfirm git RUN git clone ${URL} WORKDIR /Web RUN chmod -R 777 /Web RUN npm install -g pnpm RUN pnpm install -P # 暴露端口 EXPOSE 7860 # 启动! CMD ["node", "app.js"]