From 6e5133f6b866f77e53987252a5767242a92a84e2 Mon Sep 17 00:00:00 2001 From: xiaojunnuo Date: Tue, 23 Jul 2024 12:37:21 +0800 Subject: [PATCH] chore: github action build --- .github/workflows/build-image.yaml | 4 ++-- packages/ui/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-image.yaml b/.github/workflows/build-image.yaml index 8e89e28b..64dde18e 100644 --- a/.github/workflows/build-image.yaml +++ b/.github/workflows/build-image.yaml @@ -53,9 +53,9 @@ jobs: password: ${{ secrets.aliyun_cs_password }} - name: Build and push - uses: docker/build-push-action@v6 + uses: docker/build-push-action@v6.5.0 with: - platforms: linux/amd64,linux/arm64 +# platforms: linux/amd64,linux/arm64 push: true tags: | # registry.cn-shenzhen.aliyuncs.com/handsfree/certd:latest diff --git a/packages/ui/Dockerfile b/packages/ui/Dockerfile index b4a6c282..3c7f3453 100644 --- a/packages/ui/Dockerfile +++ b/packages/ui/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine as builder +FROM node:18-alpine as builder EXPOSE 7001 WORKDIR /workspace/ COPY . /workspace/ @@ -11,7 +11,7 @@ RUN cd /workspace/certd-server && pnpm install && npm run build-on-docker RUN cp /workspace/certd-client/dist/* /workspace/certd-server/public/ -rf -FROM registry.cn-shenzhen.aliyuncs.com/handsfree/node:18-alpine +FROM node:18-alpine WORKDIR /app/ COPY --from=builder /workspace/certd-server/ /app/ ENV TZ Asia/Shanghai