test / Dockerfile
wusama's picture
Update Dockerfile
b538c46 verified
Raw History Blame Contribute Delete
292 Bytes
# 使用轻量级 Node.js 镜像
FROM node:18-slim
# 设置工作目录
WORKDIR /app
# 复制依赖文件并安装
COPY package*.json ./
RUN npm install --production
# 复制业务代码
COPY . .
# 暴露 Hugging Face 指定的端口
EXPOSE 7860
# 启动命令
CMD ["node", "index.mjs"]