Skip to content

Commit

Permalink
riscv architecture builds into dev (#3)
Browse files Browse the repository at this point in the history
* add riscv64

* riscv architecture
  • Loading branch information
wang-zhichuang authored Mar 8, 2024
1 parent 345ca1a commit ac56fad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]
Expand Down

0 comments on commit ac56fad

Please sign in to comment.