diff --git a/.github/workflows/build-and-deploy.yaml b/.github/workflows/build-and-deploy.yaml index 2e09550..d8286b0 100644 --- a/.github/workflows/build-and-deploy.yaml +++ b/.github/workflows/build-and-deploy.yaml @@ -30,7 +30,11 @@ jobs: - name: Build and Push uses: docker/build-push-action@v5 with: - context: . + context: . # 必须确保这一行存在,它代表使用 checkout 后的当前路径 + file: ./Dockerfile # 明确指定 Dockerfile 路径 push: true + # 禁用所有缓存,彻底杀掉那个旧域名 + no-cache: true + pull: true # 强制拉取最新的基础镜像 # 这样会触发 Dockerfile 里的 npm install 和 npm build tags: ghcr.io/wireflowio/wireflow-web:dev \ No newline at end of file diff --git a/Dockerfile b/Dockerfile index f674f7c..9bbaf19 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # ---- build stage ---- -FROM docker.1ms.run/library/node:20-alpine AS build +FROM node:20-alpine AS build WORKDIR /app # 先拷贝依赖清单,利用缓存 @@ -11,7 +11,7 @@ COPY . . RUN npm run build # ---- runtime stage ---- -FROM docker.1ms.run/library/nginx:1.27-alpine +FROM nginx:1.27-alpine # 覆盖默认站点配置,支持 SPA fallback COPY nginx.conf /etc/nginx/conf.d/default.conf diff --git a/Readme.md b/Readme.md index c1b9a54..0f306e1 100644 --- a/Readme.md +++ b/Readme.md @@ -1,3 +1,3 @@ # wireflow-web -wireflow-web used for wireflow (K8S Native Network) \ No newline at end of file +wireflow-web used for wireflow (K8S Native Network platform) \ No newline at end of file