Files
copilot-toolbox-template/Dockerfile

21 lines
363 B
Docker
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
FROM node:24-alpine
WORKDIR /app
# 配置阿里云 npm 镜像
RUN npm config set registry https://registry.npmmirror.com
# 复制依赖文件
COPY package*.json ./
# 安装所有依赖(包括 devDependencies
RUN npm install
# 复制源代码
COPY . .
# 暴露端口
EXPOSE 3000
# 运行开发服务器
CMD ["npm", "run", "dev", "--", "--port", "3000"]