From 09664b1563b051b75d7fbcea4d9f6f9f28d1f2eb Mon Sep 17 00:00:00 2001 From: zhichuang Date: Tue, 5 Mar 2024 16:00:01 +0800 Subject: [PATCH 1/2] add riscv64 --- .github/workflows/container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 9b774a42037463780516e1fbd3b0a872fc8fcc16 Mon Sep 17 00:00:00 2001 From: zhichuang Date: Tue, 5 Mar 2024 17:16:18 +0800 Subject: [PATCH 2/2] riscv architecture --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 226161a..2d1e7ed 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,9 @@ -FROM alpine:3.12.0 AS base_image +FROM xfan1024/openeuler:23.03-light AS base_image FROM base_image AS build -RUN apk add --no-cache curl build-base openssl openssl-dev zlib-dev linux-headers pcre-dev git +RUN yum install -y curl gcc openssl openssl-devel zlib-devel kernel-headers pcre-devel git make + RUN mkdir nginx RUN git clone https://github.com/ao-space/nginx-vod-module.git @@ -24,7 +25,7 @@ RUN make install RUN rm -rf /usr/local/nginx/html /usr/local/nginx/conf/*.default FROM base_image -RUN apk add --no-cache ca-certificates openssl pcre zlib +RUN yum install -y ca-certificates openssl pcre zlib COPY --from=build /usr/local/nginx /usr/local/nginx COPY nginx.conf /usr/local/nginx/conf/nginx.conf ENTRYPOINT ["/usr/local/nginx/sbin/nginx"]