Initial commit: 智能项目定价模型
This commit is contained in:
23
前端应用/Dockerfile.dev
Normal file
23
前端应用/Dockerfile.dev
Normal file
@@ -0,0 +1,23 @@
|
||||
# 开发环境 Dockerfile
|
||||
|
||||
FROM node:20.11-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# 配置阿里云 npm 源
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 安装 pnpm
|
||||
RUN npm install -g pnpm
|
||||
RUN pnpm config set registry https://registry.npmmirror.com
|
||||
|
||||
# 安装依赖
|
||||
COPY package.json pnpm-lock.yaml* ./
|
||||
RUN pnpm install
|
||||
|
||||
# 设置时区
|
||||
ENV TZ=Asia/Shanghai
|
||||
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["pnpm", "dev", "--host"]
|
||||
Reference in New Issue
Block a user