修改dockerfile

This commit is contained in:
liangzai 2024-10-29 17:32:09 +08:00
parent bf33bc9f43
commit 062aa4dd19

View File

@ -1,10 +1,10 @@
# 使用指定的 Node.js 版本作为基础镜像 # 使用指定的 Node.js 版本作为基础镜像
FROM node:20.15.1 FROM node:20.15.1
RUN npm config set registry https://registry.npm.taobao.org/ RUN npm config set registry https://registry.npmmirror.com
# 全局安装 pm2 进程管理器 # 全局安装 pm2 进程管理器
RUN npm install -g pm2 RUN npm install pm2 -g
# 设置工作目录 # 设置工作目录
WORKDIR /app WORKDIR /app