Spaces:
Sleeping
Sleeping
Download Dockerfile from samlax12/MultiMindChat: direct link, hf CLI and curl.
- Browser
- Download file 623 Bytes
-
https://huggingface.co/spaces/samlax12/MultiMindChat/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/samlax12/MultiMindChat/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/samlax12/MultiMindChat/resolve/main/Dockerfile
623 Bytes
| # Multi-Mind Chat 智囊团 Dockerfile | |
| FROM node:18-alpine | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 复制 package.json 和 package-lock.json | |
| COPY package*.json ./ | |
| # 安装依赖 | |
| RUN npm ci | |
| # 复制应用代码 | |
| COPY . . | |
| # 直接设置预置渠道的环境变量(在此处修改您的配置) | |
| ENV VITE_PRESET_CHANNEL_NAME="预置服务" | |
| # 构建前端应用 | |
| RUN npm run build | |
| # 安装静态文件服务器 | |
| RUN npm install -g serve | |
| # 暴露端口 | |
| EXPOSE 7860 | |
| # 设置运行时环境变量 | |
| ENV NODE_ENV=production | |
| ENV PORT=7860 | |
| # 启动命令 | |
| CMD ["serve", "-s", "dist", "-l", "7860"] |