Commit e221fb14 by zhangxingmin

push

parent 0e639b3b
......@@ -20,13 +20,17 @@ RUN apt-get update && \
# 设置工作目录
WORKDIR /app
# 复制项目文件
COPY . .
# 复制依赖文件
COPY package*.json ./
# 使用国内npm源安装依赖
RUN npm config set registry https://registry.npmmirror.com && \
npm config set @dcloudio:registry https://registry.npmjs.org/ && \
npm install
# 复制项目文件
COPY . .
# 执行构建
RUN npm run build
......@@ -35,10 +39,10 @@ RUN npm run build
FROM nginx:1.25.2-alpine AS h5-runtime
# 复制自定义Nginx配置
COPY --from=builder /app/nginx.conf /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/default.conf
# 复制构建产物
COPY --from=builder /app/dist/build/h5 /usr/share/nginx/html
COPY --from=builder /app/unpackage/dist/build/h5 /usr/share/nginx/html
# 暴露端口
EXPOSE 8333
......
......@@ -33,7 +33,7 @@
"@dcloudio/uni-mp-weixin": "^3.0.0-alpha-3000020220422001",
"core-js": "^3.8.3",
"vue": "^2.6.11",
"@dcloudio/uni-cli-i18n": "^3.0.0"
"@dcloudio/uni-cli-i18n": "1.0.1"
},
"devDependencies": {
"less": "^4.3.0",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment