fix build
Some checks failed
Build and Deploy Web / build-and-deploy (push) Failing after 47s

This commit is contained in:
zyc 2026-01-29 11:43:49 +08:00
parent a85e4208bf
commit ce11450971
2 changed files with 6 additions and 2 deletions

View File

@ -15,6 +15,10 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2 uses: docker/setup-buildx-action@v2
with:
config-inline: |
[registry."docker.io"]
mirrors = ["https://docker.m.daocloud.io", "https://docker.1panel.live", "https://hub.rat.dev"]
- name: Login to Huawei Cloud SWR - name: Login to Huawei Cloud SWR
uses: docker/login-action@v2 uses: docker/login-action@v2

View File

@ -1,5 +1,5 @@
# Build stage # Build stage
FROM node:20-alpine as build-stage FROM node:20-alpine AS build-stage
WORKDIR /app WORKDIR /app
@ -12,7 +12,7 @@ COPY . .
RUN npm run build RUN npm run build
# Production stage # Production stage
FROM nginx:stable-alpine as production-stage FROM nginx:stable-alpine AS production-stage
COPY --from=build-stage /app/dist /usr/share/nginx/html COPY --from=build-stage /app/dist /usr/share/nginx/html