From 6822158f4c70e36e25fa8cb0fdc5ca7d1c9e43cb Mon Sep 17 00:00:00 2001 From: ljpsichuanuniversity <54525503+ljpsichuanuniversity@users.noreply.github.com> Date: Wed, 6 Dec 2023 17:41:56 +0800 Subject: [PATCH] feat(dockerfle):add riscv64 support (#5) Co-authored-by: 100ask --- .github/workflows/container.yml | 2 +- Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml index 6cea02b..24d8558 100644 --- a/.github/workflows/container.yml +++ b/.github/workflows/container.yml @@ -168,7 +168,7 @@ jobs: tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} builder: ${{ steps.buildx.outputs.name }} - platforms: linux/amd64,linux/arm64 + platforms: linux/amd64,linux/arm64,linux/riscv64 cache-from: type=gha cache-to: type=gha,mode=max file: Dockerfile diff --git a/Dockerfile b/Dockerfile index a053286..938bc73 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,9 @@ RUN find . -type f -exec dos2unix {} \; RUN npm install && npm run build && npm run buildsingle -FROM openresty/openresty:1.21.4.1-4-bullseye-fat +FROM xfan1024/openeuler:23.03-light + +RUN yum install openresty -y ENV TZ=Asia/Shanghai