This commit is contained in:
D8D Developer
2025-06-27 01:56:30 +00:00
parent 0ef1dd1484
commit b9a3c991d0
354 changed files with 5 additions and 5 deletions

26
Dockerfile.release Normal file
View File

@@ -0,0 +1,26 @@
# 使用指定基础镜像
FROM node:20.18.3
RUN apt-get update
RUN apt-get install -y python3 build-essential
# 设置工作目录
WORKDIR /app
# 复制package.json .npmrc和package-lock.json
COPY package.json .npmrc package-lock.json* ./
# 安装依赖
RUN npm install
# 复制项目文件
COPY . .
# 构建项目
RUN npm run build
# 暴露端口(根据实际需要调整)
EXPOSE 23972
# 启动命令
CMD ["npm", "run", "start"]