fix: 修复 H5 静态资源 404,将构建产物放到 /h5/ 路径下
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 56s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 56s
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,7 @@ RUN rm -rf /etc/nginx/conf.d/default.conf
|
||||
COPY docker/nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 从构建阶段复制构建产物(UniApp H5 输出目录)
|
||||
COPY --from=builder /build/dist/build/h5 /usr/share/nginx/html
|
||||
COPY --from=builder /build/dist/build/h5 /usr/share/nginx/html/h5
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 80
|
||||
|
||||
Reference in New Issue
Block a user