|
@@ -13,7 +13,7 @@ RUN yarn install --frozen-lockfile
|
|
|
COPY frontend/react-template/ .
|
|
COPY frontend/react-template/ .
|
|
|
|
|
|
|
|
# 构建生产版本(跳过 TypeScript 类型检查)
|
|
# 构建生产版本(跳过 TypeScript 类型检查)
|
|
|
-RUN vite build
|
|
|
|
|
|
|
+RUN ./node_modules/.bin/vite build
|
|
|
|
|
|
|
|
# Stage 2: nginx 托管
|
|
# Stage 2: nginx 托管
|
|
|
FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/nginx:alpine
|
|
FROM registry.cn-hangzhou.aliyuncs.com/stuuudy/nginx:alpine
|