update
This commit is contained in:
parent
fc55c13498
commit
3a2cd8fc7e
@ -33,8 +33,9 @@ RUN pnpm install && \
|
||||
echo "Installed dependencies:" && \
|
||||
pnpm list -g
|
||||
|
||||
# 安装 webpack 和 babel 相关依赖
|
||||
RUN pnpm add -D webpack webpack-cli webpack-dev-server @babel/core @babel/preset-env babel-loader
|
||||
# 安装 webpack 和 babel 相关依赖以及 Ant Design 图标
|
||||
RUN pnpm add -D webpack webpack-cli webpack-dev-server @babel/core @babel/preset-env babel-loader css-loader style-loader html-webpack-plugin vue-loader@17 @vue/compiler-sfc && \
|
||||
pnpm add ant-design-vue@3 @ant-design/icons-vue vue@3 vue-router@4 vuex@4 axios
|
||||
|
||||
# 确保babel配置文件存在
|
||||
RUN echo '{ "presets": ["@babel/preset-env"] }' > .babelrc
|
||||
@ -45,6 +46,9 @@ COPY . .
|
||||
# 创建或更新环境文件
|
||||
RUN echo "VUE_APP_API_URL=${API_URL:-/api}" > .env.production
|
||||
|
||||
# 显示安装的依赖
|
||||
RUN echo "Installed dependencies:" && pnpm list
|
||||
|
||||
# 构建应用
|
||||
RUN pnpm run build
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user