初始提交

This commit is contained in:
焦龙言
2026-07-24 09:43:10 +08:00
commit b5b4721456
793 changed files with 116305 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
# 构建阶段
FROM node:18-slim AS builder
WORKDIR /app
# 复制源代码
COPY . .
# 设置npm镜像源
RUN npm config set registry https://registry.npmmirror.com
# 安装依赖
RUN npm install
# 执行docker构建命令
RUN npm run build:docker
# 运行阶段
FROM nginx:latest
WORKDIR /usr/share/nginx/html
# 复制构建产物
COPY --from=builder /app/dist .
# 暴露端口
EXPOSE 80
# 启动nginx
CMD ["nginx", "-g", "daemon off;"]