feat: add code-flow base load

This commit is contained in:
2024-06-25 23:56:12 +08:00
parent 5118891c41
commit 776c1287b8
10 changed files with 261 additions and 132 deletions

24
dockerfile Normal file
View File

@@ -0,0 +1,24 @@
# 使用官方 Node.js 运行时镜像作为基础镜像
FROM node:22-alpine
# 设置工作目录
WORKDIR /app
# 复制 package.json 和 package-lock.json
COPY package*.json ./
# 安装依赖
# RUN npm install --production
# 复制 dist 文件夹
COPY dist ./dist
COPY app.config.json5 ./dist/app.config.json5
# 如果有其他静态资源文件夹,也可以一并复制
# COPY public ./public
# 暴露应用运行的端口(假设应用运行在 3000 端口)
EXPOSE 4000
# 启动应用
CMD ["node", "dist/app.cjs"]