Files
test/Dockerfile
User 2baa8fb143 refactor: simplify Dockerfile for development and add docker-compose
- Simplify Dockerfile to single-stage development setup
- Add docker-compose.yml for easier container management

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-09 01:56:46 +00:00

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"]