Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# ---- build stage ----
FROM docker.1ms.run/library/node:20-alpine AS build
FROM node:20-alpine AS build
WORKDIR /app

# 先拷贝依赖清单,利用缓存
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# wireflow-web

wireflow-web used for wireflow (K8S Native Network)
wireflow-web used for wireflow (K8S Native Network platform)
Loading