feat: add code-flow base load
This commit is contained in:
24
dockerfile
Normal file
24
dockerfile
Normal 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"]
|
||||
Reference in New Issue
Block a user