修改dockerfile
This commit is contained in:
parent
bf33bc9f43
commit
062aa4dd19
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user